CVE-2021-47471
JSON

5.5medium

drm: mxsfb: Fix NULL pointer dereference crash on unload

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: drm: mxsfb: Fix NULL pointer dereference crash on unload The mxsfb->crtc.funcs may already be NULL when unloading the driver, in which case calling mxsfb_irq_disable() via drm_irq_uninstall() from mxsfb_unload() leads to NULL pointer dereference. Since all we care about is masking the IRQ and mxsfb->base is still valid, just use that to clear and mask the IRQ.

Affected

Product or packageVersionsReported by
Linux Linuxfrom ae1ed0093281939b80664a687689f12436c0e874 before f40c2281d2c0674d32ba732fee45222d76495472, from ae1ed0093281939b80664a687689f12436c0e874 before b0e6db0656ddfd8bb57303c2ef61ee1c1cc694a8, from ae1ed0093281939b80664a687689f12436c0e874 before 3cfc183052c3dbf8eae57b6c1685dab00ed3db4a, 5.10
Not affected: before 5.10, from 5.10.76 up to 5.10.*, from 5.14.15 up to 5.14.*, from 5.15 up to *
CVE List
linux linux_kernelfrom 5.10 before 5.10.76, from 5.11 before 5.14.15, 5.15NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: drm: mxsfb: Fix NULL pointer dereference crash on unload The mxsfb->crtc.funcs may already be NULL when unloading the driver, in which case calling mxsfb_irq_disable() via drm_irq_uninstall() from mxsfb_unload() leads to NULL pointer dereference. Since all we care about is masking the IRQ and mxsfb->base is still valid, just use that to clear and mask the IRQ.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: drm: mxsfb: corrige el fallo de desreferencia del puntero NULL al descargar Es posible que mxsfb->crtc.funcs ya sea NULL al descargar el controlador, en cuyo caso se llama a mxsfb_irq_disable() a través de drm_irq_uninstall() desde mxsfb_unload() conduce a la desreferencia del puntero NULL. Dado que lo único que nos importa es enmascarar la IRQ y mxsfb->base sigue siendo válido, simplemente utilícelo para borrar y enmascarar la IRQ.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47471 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47471 changed 2026-06-17Public domain