CVE-2024-35836 dpll: fix pin dump crash for rebound module
A use-after-free vulnerability in the Linux kernel DPLL subsystem allows local attackers to cause a system crash by triggering a pin dump after module rebound.
- 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-2024-35836?
CVE-2024-35836 is a medium-severity use after free vulnerability in Linux kernel, published on 17 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:
dpll: fix pin dump crash for rebound module
When a kernel module is unbound but the pin resources were not entirely freed (other kernel module instance of the same PCI device have had kept the reference to that pin), and kernel module is again bound, the pin properties would not be updated (the properties are only assigned when memory for the pin is allocated), prop pointer still points to the kernel module memory of the kernel module which was deallocated on the unbind.
If the pin dump is invoked in this state, the result is a kernel crash. Prevent the crash by storing persistent pin properties in dpll subsystem, copy the content from the kernel module when pin is allocated, instead of using memory of the kernel module.
Weakness: CWE-416
Which versions are affected by CVE-2024-35836?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-35836?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-35836 being exploited?
There is no known exploitation of CVE-2024-35836 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-35836, DEBIAN-CVE-2024-35836, GHSA-6rw2-3pw4-264h, UBUNTU-CVE-2024-35836.