CVE-2025-38630

fbdev: imxfb: Check fb_add_videomode to prevent null-ptr-deref

MEDIUM
5.5
CVSS Score
Published: August 22, 2025 at 04:00 PM UTC
Updated: June 17, 2026 at 09:17 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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").

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.11 ≤ v < 5.10.2413.11 ≤ v < 5.15.1903.11 ≤ v < 5.4.2973.11 ≤ v < 6.1.1483.11 ≤ v < 6.12.423.11 ≤ v < 6.15.103.11 ≤ v < 6.16.13.11 ≤ v < 6.173.11 ≤ v < 6.6.1025.11 ≤ v < 5.15.1905.16 ≤ v < 6.1.1485.5 ≤ v < 5.10.2416.13 ≤ v < 6.15.106.16 ≤ v < 6.16.16.2 ≤ v < 6.6.1026.7 ≤ v < 6.12.421b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c3.11
Vendor states this is fixed in 40f0a51f6c54d46a94b9f1180339ede7ca7ee190 (fixed)
Vendor states this is fixed in 49377bac9e3bec1635065a033c9679214fe7593e (fixed)
Vendor states this is fixed in 4b5d36cc3014986e6fac12eaa8433fe56801d4ce (fixed)
Vendor states this is fixed in 69373502c2b5d364842c702c941d1171e4f35a7c (fixed)
Vendor states this is fixed in ac16154cccda8be10ee3ae188f10a06f3890bc5d (fixed)
Vendor states this is fixed in cca8f5a3991916729b39d797d01499c335137319 (fixed)
Vendor states this is fixed in da11e6a30e0bb8e911288bdc443b3dc8f6a7cac7 (fixed)
Vendor states this is fixed in f00c29e6755ead56baf2a9c1d3c4c0bb40af3612 (fixed)
Vendor states this is fixed in f060441c153495750804133555cf0a211a856892 (fixed)
Vendor states this is fixed in 3.11 (unaffected)
Vendor states this is fixed in 5.10.241 (unaffected)
Vendor states this is fixed in 5.15.190 (unaffected)
Vendor states this is fixed in 5.4.297 (unaffected)
Vendor states this is fixed in 6.1.148 (unaffected)
Vendor states this is fixed in 6.12.42 (unaffected)
Vendor states this is fixed in 6.15.10 (unaffected)
Vendor states this is fixed in 6.16.1 (unaffected)
Vendor states this is fixed in 6.17 (unaffected)
Vendor states this is fixed in 6.6.102 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/40f0a51f6c54d46a94b9f1180339ede7ca7ee190
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/49377bac9e3bec1635065a033c9679214fe7593e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4b5d36cc3014986e6fac12eaa8433fe56801d4ce
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/69373502c2b5d364842c702c941d1171e4f35a7c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ac16154cccda8be10ee3ae188f10a06f3890bc5d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cca8f5a3991916729b39d797d01499c335137319
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/da11e6a30e0bb8e911288bdc443b3dc8f6a7cac7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f00c29e6755ead56baf2a9c1d3c4c0bb40af3612

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card