CVE-2021-47652

Severity CVSS v4.0:
Pending analysis
Type:
CWE-476 NULL Pointer Dereference
Publication date:
26/02/2025
Last modified:
01/10/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> video: fbdev: smscufx: Fix null-ptr-deref in ufx_usb_probe()<br /> <br /> I got a null-ptr-deref report:<br /> <br /> BUG: kernel NULL pointer dereference, address: 0000000000000000<br /> ...<br /> RIP: 0010:fb_destroy_modelist+0x38/0x100<br /> ...<br /> Call Trace:<br /> ufx_usb_probe.cold+0x2b5/0xac1 [smscufx]<br /> usb_probe_interface+0x1aa/0x3c0 [usbcore]<br /> really_probe+0x167/0x460<br /> ...<br /> ret_from_fork+0x1f/0x30<br /> <br /> If fb_alloc_cmap() fails in ufx_usb_probe(), fb_destroy_modelist() will<br /> be called to destroy modelist in the error handling path. But modelist<br /> has not been initialized yet, so it will result in null-ptr-deref.<br /> <br /> Initialize modelist before calling fb_alloc_cmap() to fix this bug.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 3.2 (including) 4.9.311 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.10 (including) 4.14.276 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.15 (including) 4.19.238 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.20 (including) 5.4.189 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.110 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.33 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 5.16.19 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.17 (including) 5.17.2 (excluding)