Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-40304

published high CVSS 3.1 · 7.8

fbdev: Add bounds checking in bit_putcs to fix vmalloc-out-of-bounds

Published
08 Dec 2025, 00:46:29 UTC
Updated
05 Aug 2026, 12:09:23 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 996bfaa7372d6718b6d860bdf78f6618e850c702 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < f0982400648a3e00580253e0c48e991f34d2684c · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 1943b69e87b0ab35032d47de0a7fca9a3d1d6fc1 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < ebc0730b490c7f27340b1222e01dd106e820320d · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 86df8ade88d290725554cefd03101ecd0fbd3752 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 15ba9acafb0517f8359ca30002c189a68ddbb939 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 2d1359e11674ed4274934eac8a71877ae5ae7bbb · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 3637d34b35b287ab830e66048841ace404382b67 · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.12 (affected) · 0 to < 2.6.12 (unaffected · semver) · 5.4.302 through 5.4.* (unaffected · semver) · 5.10.247 through 5.10.* (unaffected · semver) · 5.15.197 through 5.15.* (unaffected · semver) · 6.1.159 through 6.1.* (unaffected · semver) · 6.6.117 through 6.6.* (unaffected · semver) · 6.12.58 through 6.12.* (unaffected · semver) · 6.17.8 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2026-112 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2025-096 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2026-118 Fixed Not stated Amazon Linux assessment
AlmaLinux 10 kernel-abi-stablelists Advisory build 6.12.0-124.35.1.el10_1 ALSA-2026:2282
AlmaLinux 10 kernel-doc Advisory build 6.12.0-124.35.1.el10_1 ALSA-2026:2282
Show 100 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluationALAS2023-2025-1350 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2026-1495 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.105.1.rt7.446.el8_10 ALSA-2026:2821
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.105.1.rt7.446.el8_10 ALSA-2026:2821
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.105.1.rt7.446.el8_10 ALSA-2026:2821
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.105.1.rt7.446.el8_10 ALSA-2026:2821
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.105.1.rt7.446.el8_10 ALSA-2026:2821
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.105.1.rt7.446.el8_10 ALSA-2026:2821
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.105.1.rt7.446.el8_10 ALSA-2026:2821
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.105.1.rt7.446.el8_10 ALSA-2026:2821
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.105.1.rt7.446.el8_10 ALSA-2026:2821
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.105.1.rt7.446.el8_10 ALSA-2026:2821
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 perf Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.105.1.el8_10 ALSA-2026:2720
AlmaLinux 9 kernel Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-64k Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-debug Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-devel Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-doc Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-headers Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-modules Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-64k Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-64k-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-64k-debug Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-64k-debug-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-64k-debug-devel Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-64k-debug-modules Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-64k-debug-modules-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-64k-debug-modules-extra Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-64k-devel Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-64k-modules Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-64k-modules-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-64k-modules-extra Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-tools Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-uki-virt-addons Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-611.34.1.el9_7 ALSA-2026:2722

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: fbdev: Add bounds checking in bit_putcs to fix vmalloc-out-of-bounds Add bounds checking to prevent writes past framebuffer boundaries when rendering text near screen edges. Return early if the Y position is off-screen and clip image height to screen boundary. Break from the rendering loop if the X position is off-screen. When clipping image width to fit the screen, update the character count to match the clipped width to prevent buffer size mismatches. Without the character count update, bit_putcs_aligned and bit_putcs_unaligned receive mismatched parameters where the buffer is allocated for the clipped width but cnt reflects the original larger count, causing out-of-bounds writes.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

77

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - Exploitation requires local access to the framebuffer character device (`/dev/fbN` ioctls FBIOPUT_CON2FBMAP / FBIOPUT_VSCREENINFO) and/or a virtual console, plus a write to the console to trigger the redraw. There is no remote or network-reachable path into fbcon's glyph blitting. AC:L - The reproducer is deterministic — an ioctl puts the VC geometry out of sync with the framebuffer resolution and the very next console redraw performs the out-of-bounds write; syzbot produced a reliable reproducer and confirmed the fix. No race, no memory-layout luck, and no unusual configuration is required (fbcon with DRM fbdev emulation is the default on ordinary systems). PR:L - No capability check exists anywhere on the path: `fbcon_set_con2fb_map_ioctl()` and the `FBIOPUT_CON2FBMAP`/`FBIOPUT_VSCREENINFO` handlers perform no `capable()` test, and the VT resize/mode ioctls only require being the owner of the controlling tty. Any unprivileged local user holding the usual graphics/console device access (group `video`, logind uaccess ACLs, Android/kiosk/embedded graphics processes) can reach it. UI:N - The attacker performs every step themselves — issue the ioctl to desynchronize the console geometry, then write bytes to their own console fd to force the redraw. No victim action or interaction is needed. S:U - The corruption occurs in kernel virtual memory and is exploited to escalate within the same kernel security authority. No hypervisor, IOMMU, or sandbox boundary is crossed. C:H - The bug yields an out-of-bounds write with an attacker-influenced offset into the vmalloc region, adjacent to other DRM GEM shmem vmapped buffers and kernel objects, which is readily leveraged into arbitrary kernel memory disclosure (e.g. by corrupting neighbouring buffer pointers/lengths or other clients' graphics buffers that the attacker can mmap). I:H - This is a controlled out-of-bounds write: the destination offset is derived from attacker-set VC geometry and font metrics, and the written content is attacker-chosen (console text rendered through a user-supplied font via KDFONTOP), giving a powerful kernel write primitive suitable for privilege escalation. A:H - The out-of-bounds write past the vmalloc'd framebuffer corrupts adjacent kernel memory or hits an unmapped guard page, producing a KASAN-confirmed vmalloc-out-of-bounds write and, in production kernels, an oops/panic that can be triggered repeatedly.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 996bfaa7372d6718b6d860bdf78f6618e850c702 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < f0982400648a3e00580253e0c48e991f34d2684c (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 1943b69e87b0ab35032d47de0a7fca9a3d1d6fc1 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < ebc0730b490c7f27340b1222e01dd106e820320d (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 86df8ade88d290725554cefd03101ecd0fbd3752 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 15ba9acafb0517f8359ca30002c189a68ddbb939 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 2d1359e11674ed4274934eac8a71877ae5ae7bbb (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 3637d34b35b287ab830e66048841ace404382b67 (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.12 (affected)0 to < 2.6.12 (unaffected · semver)5.4.302 through 5.4.* (unaffected · semver)5.10.247 through 5.10.* (unaffected · semver)5.15.197 through 5.15.* (unaffected · semver)6.1.159 through 6.1.* (unaffected · semver)6.6.117 through 6.6.* (unaffected · semver)6.12.58 through 6.12.* (unaffected · semver)6.17.8 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

2

Linux · cna

fbdev: Add bounds checking in bit_putcs to fix vmalloc-out-of-bounds

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
694f70188d459190f415bb710a045e43aba91379aecf1656fcc33923d22ab03a
Ingested
23 Sep 2026, 08:48:04 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected