CVE-2026-138825

Not scored yetLast modified Nov 30, 2026

Description

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

fbdev: core: Initialize modelist in framebuffer_alloc()

framebuffer_alloc() returns zeroed memory, so info->modelist starts out with NULL next and prev pointers. The list head is initialized only later, by fb_videomode_to_modelist() or by do_register_framebuffer().

The "fix potential memory leak" commits listed below added fb_destroy_modelist(&info->modelist) to the probe error paths of s3fb, tdfxfb, tridentfb, i740fb and carminefb. These paths can run before the list head is initialized:

- s3fb, tdfxfb, tridentfb and i740fb call fb_videomode_to_modelist() only after a successful EDID read, and tridentfb can also hit the error path on an ioremap() or kmalloc() failure before that; - carminefb jumps to the error path when fb_find_mode() fails, before its fb_videomode_to_modelist() call.

fb_destroy_modelist() then dereferences the NULL head. Reproduced on Debian 12 (6.1.180) by binding s3fb to a VGA device without EDID and forcing fb_alloc_cmap() to fail:

s3fb 0000:00:03.0: cannot allocate colormap BUG: kernel NULL pointer dereference, address: 0000000000000000 RIP: 0010:fb_destroy_modelist+0x10/0x80 Call Trace: s3_pci_probe.cold+0x12b/0x2bf [s3fb] local_pci_probe+0x41/0x80 pci_device_probe+0xc3/0x240 really_probe+0xde/0x380 __driver_probe_device+0x84/0x150 driver_probe_device+0x1f/0x90 __driver_attach+0xce/0x1c0 bus_for_each_dev+0x87/0xd0 bus_add_driver+0x1ae/0x200 driver_register+0x89/0xe0 do_one_initcall+0x59/0x220 do_init_module+0x4a/0x1f0

Initialize the list head in framebuffer_alloc(), so info->modelist is always a valid, possibly empty, list and fb_destroy_modelist() is safe on every error path. Keep the lazy initialization in do_register_framebuffer(), as drivers that embed struct fb_info rather than calling framebuffer_alloc() still depend on it.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138826In the Linux kernel, the following vulnerability has been resolved: fbdev: sh_mobile_lcdcfb: Restore the per-overlay sysfs attributes The CVE-2026-138827In the Linux kernel, the following vulnerability has been resolved: platform/x86/amd: hfi: Fix out-of-bounds reads when parsing ranking datCVE-2026-138828In the Linux kernel, the following vulnerability has been resolved: platform/x86: asus-wmi: Serialize WMI method evaluations with a mutex CVE-2026-138829In the Linux kernel, the following vulnerability has been resolved: platform/x86: hp-bioscfg: fix 16-byte heap overflow for empty auth tokeCVE-2026-138839.6Type Confusion in ANGLE in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to potentially perform a sandbox escape via a crafCVE-2026-138830In the Linux kernel, the following vulnerability has been resolved: mm/shmem: don't release a swapin-error marker as a swap entry A failedCVE-2026-138831In the Linux kernel, the following vulnerability has been resolved: mm/shmem: report RCU-tasks quiescent states while undoing a range ThisCVE-2026-138832In the Linux kernel, the following vulnerability has been resolved: mm/madvise: reclaim isolated folios if PTE restart fails MADV_PAGEOUT CVE-2026-138833In the Linux kernel, the following vulnerability has been resolved: proc/task_mmu: handle special PMDs in clear_refs and pagemap mshv_vtl_CVE-2026-138834In the Linux kernel, the following vulnerability has been resolved: xprtrdma: trim head iovec when the payload arrives via a Write chunk TCVE-2026-138835In the Linux kernel, the following vulnerability has been resolved: arm64/efi: Clear PTE_WRITE when applying EFI_MEMORY_RO set_permissionsCVE-2026-138836In the Linux kernel, the following vulnerability has been resolved: ACPI: APEI: accumulate the queued flag across error sections ghes_do_p
CVE-2026-138825: Unscored | Vulnix