PT-2026-162685
CVE-2026-138825
·
تاريخ النشر
2026-11-30
·
تاريخ التحديث
2026-11-30
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
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.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾