CVE-2023-52703 net/usb: kalmia: Don't pass act_len in usb_bulk_msg error path
An uninitialized variable in the Kalmia USB driver can cause a kernel crash when handling USB bulk message errors, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-52703?
CVE-2023-52703 is a low-severity vulnerability in Linux kernel, published on 21 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
net/usb: kalmia: Don't pass act_len in usb_bulk_msg error path
syzbot reported that act_len in kalmia_send_init_packet() is uninitialized when passing it to the first usb_bulk_msg error path. Jiri Pirko noted that it's pointless to pass it in the error path, and that the value that would be printed in the second error path would be the value of act_len from the first call to usb_bulk_msg.[1]
With this in mind, let's just not pass act_len to the usb_bulk_msg error paths.
1: https://lore.kernel.org/lkml/Y9pY61y1nwTuzMOa@nanopsycho/
Weakness: CWE-908
Which versions are affected by CVE-2023-52703?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52703?
Apply the vendor's patch.
Is CVE-2023-52703 being exploited?
There is no known exploitation of CVE-2023-52703 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52703, DEBIAN-CVE-2023-52703, GHSA-hcvq-7hmv-2q86, UBUNTU-CVE-2023-52703.