CVE-2021-47583 media: mxl111sf: change mutex_init() location
A missing mutex initialization in the mxl111sf driver can cause a kernel crash when the device is attached, 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-2021-47583?
CVE-2021-47583 is a medium-severity vulnerability in Linux kernel, published on 19 Jun 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:
media: mxl111sf: change mutex_init() location
Syzbot reported, that mxl111sf_ctrl_msg() uses uninitialized mutex. The problem was in wrong mutex_init() location.
Previous mutex_init(&state->msg_lock) call was in ->init() function, but dvb_usbv2_init() has this order of calls:
dvb_usbv2_init() dvb_usbv2_adapter_init() dvb_usbv2_adapter_frontend_init() props->frontend_attach()
props->init()
Since mxl111sf_* devices call mxl111sf_ctrl_msg() in ->frontend_attach() internally we need to initialize state->msg_lock before frontend_attach(). To achieve it, ->probe() call added to all mxl111sf_* devices, which will simply initiaize mutex.
Weakness: CWE-908
Which versions are affected by CVE-2021-47583?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47583?
Apply the vendor's patch.
Is CVE-2021-47583 being exploited?
There is no known exploitation of CVE-2021-47583 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47583, GHSA-hfwg-2mm4-h8c4, UBUNTU-CVE-2021-47583.