CVE-2021-47652

video: fbdev: smscufx: Fix null-ptr-deref in ufx_usb_probe()

Medium · published February 26, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
16.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00260 · 16.7th percentile
Published
2025-02-26T01:54Z
EPSS history
Timeline
  • 26 FEB 01:54Z
    video: fbdev: smscufx: Fix null-ptr-deref in ufx_usb_probe()
    cvelistv5