CVE-2023-52838 fbdev: imsttfb: fix a resource leak in probe
A resource leak in the imsttfb driver probe function can lead to a use-after-free condition, potentially causing a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-52838?
CVE-2023-52838 is a medium-severity use after free 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:
fbdev: imsttfb: fix a resource leak in probe
I've re-written the error handling but the bug is that if init_imstt() fails we need to call iounmap(par->cmap_regs).
Weakness: CWE-416
Which versions are affected by CVE-2023-52838?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52838?
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-2023-52838 being exploited?
There is no known exploitation of CVE-2023-52838 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52838, DEBIAN-CVE-2023-52838, GHSA-f8gg-2gx7-phw9, UBUNTU-CVE-2023-52838.