CVE-2025-38702
fbdev: fix potential buffer overflow in do_register_framebuffer()
Check your servers for CVE-2025-38702
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38702 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
fbdev: fix potential buffer overflow in do_register_framebuffer()
The current implementation may lead to buffer overflow when: 1. Unregistration creates NULL gaps in registered_fb[] 2. All array slots become occupied despite num_registered_fb < FB_MAX 3. The registration loop exceeds array bounds
Add boundary check to prevent registered_fb[FB_MAX] access.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.9% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 5c3f5a25c62230b7965804ce7a2e9305c3ca3961 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before cbe740de32bb0fb7a5213731ff5f26ea6718fca3 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 806f85bdd3a60187c21437fc51baace11f659f35 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 2828a433c7d7a05b6f27c8148502095101dd0b09 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 248b2aab9b2af5ecf89d9d7955a2ff20c4b4a399 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 523b84dc7ccea9c4d79126d6ed1cf9033cf83b05
Other versions: unaffected
|
| Linux |
affected 2.6.12 unaffected before 2.6.12 unaffected from 6.1.149 up to and including 6.1.* unaffected from 6.6.103 up to and including 6.6.* unaffected from 6.12.43 up to and including 6.12.* unaffected from 6.15.11 up to and including 6.15.* unaffected from 6.16.2 up to and including 6.16.* unaffected 6.17 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38702 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38702
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38702
trivy image --scanners vuln IMAGE | grep CVE-2025-38702
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/5c3f5a25c62230b7965804ce7a2e9305c3ca3961 git.kernel.org
- https://git.kernel.org/stable/c/cbe740de32bb0fb7a5213731ff5f26ea6718fca3 git.kernel.org
- https://git.kernel.org/stable/c/806f85bdd3a60187c21437fc51baace11f659f35 git.kernel.org
- https://git.kernel.org/stable/c/2828a433c7d7a05b6f27c8148502095101dd0b09 git.kernel.org
- https://git.kernel.org/stable/c/248b2aab9b2af5ecf89d9d7955a2ff20c4b4a399 git.kernel.org
- https://git.kernel.org/stable/c/523b84dc7ccea9c4d79126d6ed1cf9033cf83b05 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html cert-portal.siemens.com
Source: the record CVE-2025-38702 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse