fbdev: imxfb: Check fb_add_videomode to prevent null-ptr-deref (Linux Linux)

CVE-2025-38630
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.17 % · percentile 7 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: fbdev: imxfb: Check fb_add_videomode to prevent null-ptr-deref fb_add_videomode() can fail with -ENOMEM when its internal kmalloc() cannot allocate a struct fb_modelist. If that happens, the modelist stays empty but the driver continues to register. Add a check for its return value to prevent poteintial null-ptr-deref, which is similar to the commit 17186f1f90d3 ("fbdev: Fix do_register_framebuffer to prevent null-ptr-deref in fb_videomode_to_var").

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c < 69373502c2b5d364842c702c941d1171e4f35a7c ; affected 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c < f00c29e6755ead56baf2a9c1d3c4c0bb40af3612 ; affected 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c < cca8f5a3991916729b39d797d01499c335137319 ; affected 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c < ac16154cccda8be10ee3ae188f10a06f3890bc5d ; affected 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c < 4b5d36cc3014986e6fac12eaa8433fe56801d4ce ; affected 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c < 40f0a51f6c54d46a94b9f1180339ede7ca7ee190
Linux · Linuxaffected 3.11 ; unaffected 0 < 3.11 ; unaffected 5.4.297 ≤ 5.4.* ; unaffected 5.10.241 ≤ 5.10.* ; unaffected 5.15.190 ≤ 5.15.* ; unaffected 6.1.148 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD