CVE-2021-47652 video: fbdev: smscufx: Fix null-ptr-deref in ufx_usb_probe()
A null pointer dereference in the Linux kernel's smscufx driver can cause a system crash when a specific USB device probe fails.
- 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-47652?
CVE-2021-47652 is a medium-severity vulnerability in Linux kernel, published on 26 Feb 2025. 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:
video: fbdev: smscufx: Fix null-ptr-deref in ufx_usb_probe()
I got a null-ptr-deref report:
BUG: kernel NULL pointer dereference, address: 0000000000000000 ... RIP: 0010:fb_destroy_modelist+0x38/0x100 ... Call Trace: ufx_usb_probe.cold+0x2b5/0xac1 [smscufx] usb_probe_interface+0x1aa/0x3c0 [usbcore] really_probe+0x167/0x460 ... ret_from_fork+0x1f/0x30
If fb_alloc_cmap() fails in ufx_usb_probe(), fb_destroy_modelist() will be called to destroy modelist in the error handling path. But modelist has not been initialized yet, so it will result in null-ptr-deref.
Initialize modelist before calling fb_alloc_cmap() to fix this bug.
Weakness: CWE-476
Which versions are affected by CVE-2021-47652?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47652?
Apply the vendor's patch.
Is CVE-2021-47652 being exploited?
There is no known exploitation of CVE-2021-47652 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47652, GHSA-m29h-h248-xjc9, UBUNTU-CVE-2021-47652.