CVE-2025-38630 fbdev: imxfb: Check fb_add_videomode to prevent null-ptr-deref

Medium 5.5 Published Updated

A missing error check in the imxfb framebuffer driver can lead to a null pointer dereference, causing a system crash.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-38630?

CVE-2025-38630 is a medium-severity vulnerability in Debian Debian Linux, published on 22 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-476

Which versions are affected by CVE-2025-38630?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-38630?

Apply the vendor's patch.

Is CVE-2025-38630 being exploited?

There is no known exploitation of CVE-2025-38630 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-66605, AZL-73479, BELL-CVE-2025-38630, DEBIAN-CVE-2025-38630, GHSA-fwmh-rv23-rjr3, ROOT-OS-DEBIAN-11-CVE-2025-38630 and 5 more.

Is CVE-2025-38630 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free