# CVE-2021-47471: drm: mxsfb: Fix NULL pointer dereference crash on unload

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-05-22T06:23:28.903Z
- Modified: 2026-06-17T04:17:33.033Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 5.10 before 5.10.76; from 5.11 before 5.14.15; 5.15

## References

- <https://git.kernel.org/stable/c/f40c2281d2c0674d32ba732fee45222d76495472> (patch)
- <https://git.kernel.org/stable/c/b0e6db0656ddfd8bb57303c2ef61ee1c1cc694a8> (patch)
- <https://git.kernel.org/stable/c/3cfc183052c3dbf8eae57b6c1685dab00ed3db4a> (patch)

## Sources

- CVE List: [CVE-2021-47471](https://www.cve.org/CVERecord?id=CVE-2021-47471), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47471](https://nvd.nist.gov/vuln/detail/CVE-2021-47471), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47471 · Whole record: https://cve.day/CVE-2021-47471.json · Rebuilt by cve.day 2026-11-25T22:58:08.874Z
