CVE-2025-40323
published high CVSS 3.1 · 7.8fbcon: Set fb_display[i]->mode to NULL when the mode is released
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 39c2c1a2773aaf73e56906e5ef670114eb2d354f · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 4ac18f0e6a6d599ca751c4cd98e522afc8e3d4eb · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 468f78276a37f4c6499385a4ce28f4f57be6655d · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < c079d42f70109512eee49123a843be91d8fa133f · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < de89d19f4f30d9a8de87b9d08c1bd35cb70576d8 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < a1f3058930745d2b938b6b4f5bd9630dc74b26b7 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.12 (affected) · 0 to < 2.6.12 (unaffected · semver) · 5.15.203 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 | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2026-102 | Fixed | Not stated | Amazon Linux assessment |
| 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 | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-211.60.1.el10_2 | ALSA-2026:71602 |
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-211.60.1.el10_2 | ALSA-2026:71602 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.169.1.rt7.510.el8_10 | ALSA-2026:72467 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.169.1.rt7.510.el8_10 | ALSA-2026:72467 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.169.1.rt7.510.el8_10 | ALSA-2026:72467 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.169.1.rt7.510.el8_10 | ALSA-2026:72467 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.169.1.rt7.510.el8_10 | ALSA-2026:72467 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.169.1.rt7.510.el8_10 | ALSA-2026:72467 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.169.1.rt7.510.el8_10 | ALSA-2026:72467 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.169.1.rt7.510.el8_10 | ALSA-2026:72467 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.169.1.rt7.510.el8_10 | ALSA-2026:72467 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.169.1.rt7.510.el8_10 | ALSA-2026:72467 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.169.1.el8_10 | ALSA-2026:72468 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-64k | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-64k-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-64k-debug | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-64k-debug-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-64k-debug-devel | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-extra | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-64k-devel | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-64k-modules | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-64k-modules-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-64k-modules-extra | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-uki-virt-addons | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-687.52.1.el9_8 | ALSA-2026:71700 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: fbcon: Set fb_display[i]->mode to NULL when the mode is released Recently, we discovered the following issue through syzkaller: BUG: KASAN: slab-use-after-free in fb_mode_is_equal+0x285/0x2f0 Read of size 4 at addr ff11000001b3c69c by task syz.xxx ... Call Trace: <TASK> dump_stack_lvl+0xab/0xe0 print_address_description.constprop.0+0x2c/0x390 print_report+0xb9/0x280 kasan_report+0xb8/0xf0 fb_mode_is_equal+0x285/0x2f0 fbcon_mode_deleted+0x129/0x180 fb_set_var+0xe7f/0x11d0 do_fb_ioctl+0x6a0/0x750 fb_ioctl+0xe0/0x140 __x64_sys_ioctl+0x193/0x210 do_syscall_64+0x5f/0x9c0 entry_SYSCALL_64_after_hwframe+0x76/0x7e Based on experimentation and analysis, during framebuffer unregistration, only the memory of fb_info->modelist is freed, without setting the corresponding fb_display[i]->mode to NULL for the freed modes. This leads to UAF issues during subsequent accesses. Here's an example of reproduction steps: 1. With /dev/fb0 already registered in the system, load a kernel module to register a new device /dev/fb1; 2. Set fb1's mode to the global fb_display[] array (via FBIOPUT_CON2FBMAP); 3. Switch console from fb to VGA (to allow normal rmmod of the ko); 4. Unload the kernel module, at this point fb1's modelist is freed, leaving a wild pointer in fb_display[]; 5. Trigger the bug via system calls through fb0 attempting to delete a mode from fb0. Add a check in do_unregister_framebuffer(): if the mode to be freed exists in fb_display[], set the corresponding mode pointer to NULL.
Related advisories
Vendor advisories explicitly linked to this CVE.
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 - The vulnerability is reached through `ioctl()` on the `/dev/fbN` character device (`FBIOPUT_VSCREENINFO` / `FBIOPUT_CON2FBMAP`), which requires local access to the system. There is no remote or network-facing path into fbcon. AC:L - Once a framebuffer has been unregistered leaving a stale `fb_display[i].mode`, triggering the use-after-free is a single deterministic ioctl with no race to win and no memory-layout condition outside the attacker's control. The attacker can additionally groom the freed `fb_modelist` slab with controlled allocations before dereferencing it. PR:L - No capability check exists anywhere in the fbdev ioctl path — access is governed solely by DAC on `/dev/fbN`, which logged-in seat users obtain via logind `uaccess` ACLs or `video`/`graphics` group membership on desktops, kiosks, embedded devices and Android. An unprivileged local user with a console/seat can issue every ioctl involved. UI:N - The attacker performs all steps himself via ioctls on the framebuffer device; no victim action is needed. The framebuffer unregistration that creates the stale pointer occurs through ordinary system events such as USB display/dock removal or DRM driver unbind. S:U - The corruption and its consequences are confined to kernel memory within the same security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The use-after-free reads a freed slab object that the attacker can reallocate with chosen or sensitive kernel data, and `display_to_var()`/`fb_videomode_to_var()` copy ~15 fields out of it into `info->var`, which is then readable from userspace via `FBIOGET_VSCREENINFO` — a repeatable kernel heap disclosure primitive. I:H - A use-after-free on a groomable kmalloc object permits heap spraying and type confusion with the reallocated victim object; the freed contents also propagate into `fb_check_var`/`fb_set_par` and console resize arithmetic, corrupting kernel state and enabling escalation to control-flow hijack. A:H - The reported syzkaller report is a KASAN slab-use-after-free that oopses the task in `fb_mode_is_equal()`; dereferencing the dangling pointer after the slab page is returned to the page allocator produces a kernel panic, and the stale pointer can be re-triggered repeatedly.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 39c2c1a2773aaf73e56906e5ef670114eb2d354f (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 4ac18f0e6a6d599ca751c4cd98e522afc8e3d4eb (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 468f78276a37f4c6499385a4ce28f4f57be6655d (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < c079d42f70109512eee49123a843be91d8fa133f (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < de89d19f4f30d9a8de87b9d08c1bd35cb70576d8 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < a1f3058930745d2b938b6b4f5bd9630dc74b26b7 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.12 (affected)0 to < 2.6.12 (unaffected · semver)5.15.203 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
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/39c2c1a2773aaf73e56906e5ef670114eb2d354f
- https://git.kernel.org/stable/c/468f78276a37f4c6499385a4ce28f4f57be6655d
- https://git.kernel.org/stable/c/4ac18f0e6a6d599ca751c4cd98e522afc8e3d4eb
- https://git.kernel.org/stable/c/a1f3058930745d2b938b6b4f5bd9630dc74b26b7
- https://git.kernel.org/stable/c/c079d42f70109512eee49123a843be91d8fa133f
- https://git.kernel.org/stable/c/de89d19f4f30d9a8de87b9d08c1bd35cb70576d8
Provider assertions
2Linux · cna
fbcon: Set fb_display[i]->mode to NULL when the mode is released
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dcdc845ba7e2e85e05eab9c625ce1501c15ffc9f0959a122d21bf30ac1d1b9ff
- Ingested
- 15 Oct 2026, 23:29:36 UTC
- Source record
- Official CVE record