CVE-2025-38702

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38702
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38702.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38702
Downstream
Related
Published
2025-09-04T15:32:53.990Z
Modified
2025-11-28T02:34:55.775411Z
Summary
fbdev: fix potential buffer overflow in do_register_framebuffer()
Details

In the Linux kernel, the following vulnerability has been resolved:

fbdev: fix potential buffer overflow in doregisterframebuffer()

The current implementation may lead to buffer overflow when: 1. Unregistration creates NULL gaps in registeredfb[] 2. All array slots become occupied despite numregisteredfb < FBMAX 3. The registration loop exceeds array bounds

Add boundary check to prevent registeredfb[FBMAX] access.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38702.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Fixed
5c3f5a25c62230b7965804ce7a2e9305c3ca3961
Fixed
cbe740de32bb0fb7a5213731ff5f26ea6718fca3
Fixed
806f85bdd3a60187c21437fc51baace11f659f35
Fixed
2828a433c7d7a05b6f27c8148502095101dd0b09
Fixed
248b2aab9b2af5ecf89d9d7955a2ff20c4b4a399
Fixed
523b84dc7ccea9c4d79126d6ed1cf9033cf83b05

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.149
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.103
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.43
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.11
Type
ECOSYSTEM
Events
Introduced
6.16.0
Fixed
6.16.2