# CVE-2025-38630: fbdev: imxfb: Check fb\_add\_videomode to prevent null-ptr-deref

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-08-22T16:00:38.678Z
- **Modified:** 2026-06-17T09:17:15.070Z

## Who should check

- Anyone running Linux \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< 69373502c2b5d364842c702c941d1171e4f35a7c; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< f00c29e6755ead56baf2a9c1d3c4c0bb40af3612; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< cca8f5a3991916729b39d797d01499c335137319; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< ac16154cccda8be10ee3ae188f10a06f3890bc5d; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< 4b5d36cc3014986e6fac12eaa8433fe56801d4ce; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< 40f0a51f6c54d46a94b9f1180339ede7ca7ee190; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< 49377bac9e3bec1635065a033c9679214fe7593e; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< f060441c153495750804133555cf0a211a856892; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< da11e6a30e0bb8e911288bdc443b3dc8f6a7cac7
- Anyone running Linux 3.11

## 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 and fixed versions

- Linux: \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< 69373502c2b5d364842c702c941d1171e4f35a7c; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< f00c29e6755ead56baf2a9c1d3c4c0bb40af3612; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< cca8f5a3991916729b39d797d01499c335137319; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< ac16154cccda8be10ee3ae188f10a06f3890bc5d; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< 4b5d36cc3014986e6fac12eaa8433fe56801d4ce; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< 40f0a51f6c54d46a94b9f1180339ede7ca7ee190; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< 49377bac9e3bec1635065a033c9679214fe7593e; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< f060441c153495750804133555cf0a211a856892; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< da11e6a30e0bb8e911288bdc443b3dc8f6a7cac7 (cvelist)
- Linux: 3.11 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38630. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38630.md
Affected: Linux >= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, < 69373502c2b5d364842c702c941d1171e4f35a7c; >= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, < f00c29e6755ead56baf2a9c1d3c4c0bb40af3612; >= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, < cca8f5a3991916729b39d797d01499c335137319; >= 1b6c79361ba5ce30b40f0f7…
Fixed in: Linux 69373502c2b5d364842c702c941d1171e4f35a7c, Linux 4b5d36cc3014986e6fac12eaa8433fe56801d4ce, Linux 40f0a51f6c54d46a94b9f1180339ede7ca7ee190, Linux 49377bac9e3bec1635065a033c9679214fe7593e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38630 being exploited?

There is no confirmed exploitation: CVE-2025-38630 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38630?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38630?

Linux \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< 69373502c2b5d364842c702c941d1171e4f35a7c; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< f00c29e6755ead56baf2a9c1d3c4c0bb40af3612; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< cca8f5a3991916729b39d797d01499c335137319; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< ac16154cccda8be10ee3ae188f10a06f3890bc5d; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< 4b5d36cc3014986e6fac12eaa8433fe56801d4ce; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< 40f0a51f6c54d46a94b9f1180339ede7ca7ee190; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< 49377bac9e3bec1635065a033c9679214fe7593e; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< f060441c153495750804133555cf0a211a856892; \>= 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c, \< da11e6a30e0bb8e911288bdc443b3dc8f6a7cac7; Linux 3.11.

### Is there a fix for CVE-2025-38630?

Yes. Fixed in Linux 69373502c2b5d364842c702c941d1171e4f35a7c, Linux 4b5d36cc3014986e6fac12eaa8433fe56801d4ce, Linux 40f0a51f6c54d46a94b9f1180339ede7ca7ee190, Linux 49377bac9e3bec1635065a033c9679214fe7593e. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38630?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/69373502c2b5d364842c702c941d1171e4f35a7c>
- patch: <https://git.kernel.org/stable/c/f00c29e6755ead56baf2a9c1d3c4c0bb40af3612>
- patch: <https://git.kernel.org/stable/c/cca8f5a3991916729b39d797d01499c335137319>
- patch: <https://git.kernel.org/stable/c/ac16154cccda8be10ee3ae188f10a06f3890bc5d>
- patch: <https://git.kernel.org/stable/c/4b5d36cc3014986e6fac12eaa8433fe56801d4ce>
- patch: <https://git.kernel.org/stable/c/40f0a51f6c54d46a94b9f1180339ede7ca7ee190>
- patch: <https://git.kernel.org/stable/c/49377bac9e3bec1635065a033c9679214fe7593e>
- patch: <https://git.kernel.org/stable/c/f060441c153495750804133555cf0a211a856892>
- patch: <https://git.kernel.org/stable/c/da11e6a30e0bb8e911288bdc443b3dc8f6a7cac7>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38630>

HTML: <https://flawdb.com/CVE-2025-38630> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38630>
