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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 5.15.212 <5.15.226 | — |
| Linux | Linux | d81860691e4cfa14d596136ea2727f244e9e5950 | — |
| Linux | Linux | 37f4b8bd9e3835a7d4da26baf80b497e478d3123 | — |
| Linux | Linux | 146b708bc75f1e6cf70df31195632c9946cb70fd <e138768e628bd18f0b7c769b102b1317e9614796 | — |
| Linux | Linux | b039e0693df003c5baa1e89630344f92a78afb15 | — |
| Linux | Linux | 6069044e74b7510bf2f034ccd049bc962fb9c765 | — |
| Linux | Linux | d3776b1bf9c100873c7365bd31a67ed6caacbd82 <0ac836741b782fe2b463478f7e61e3a2459c72fe | — |
| Linux | Linux | dfbb1a695d8891774c80c0e2a9192afb66469eb7 | — |
| Linux | Linux | ad54698255a4b988cae1ad908c158c1d4128887c | — |
| Linux | Linux | 5.10.261 <5.10.275 | — |
| Linux | Linux | patch: 7.3.4 | — |
| Linux | Linux | 2efd9797331a559b93ab888f451838f87bd6dfa3 | — |
| Linux | Linux | e1ca9b8559e0f5959228626bdeaae530a1ee0337 | — |
| Linux | Linux | 3c0cf89b74e7b8ebc21a1542937c8e912d19f22b <06f03a1313b8e9673761e2521219cc31228df4c1 | — |
| Linux | Linux | 6.12.97 <6.12.118 | — |
| Linux | Linux | patch: 6.6.163 | — |
| Linux | Linux | d21e6747f3f68dcce59b5d2205f98633d28f69eb | — |
| Linux | Linux | 5bdb6f11ad0398b11a3ae4d9104035f9dc628cdc | — |
| Linux | Linux | patch: 6.12.118 | — |
| Linux | Linux | 237611edf15172e4dc7fa9b3b71c2445602d3459 | — |
| Linux | Linux | fc90ec978a3cef6f6d8c6074bee538998c7c9837 | — |
| Linux | Linux | 2199d70efc5bea0e9b4462a4f9e4c3d3c21c5d34 | — |
| Linux | Linux | 2ede8fa708235c81ab18de14077f1a458bec7e22 | — |
| Linux | Linux | 8d16e5bc78478176621cac0f4c381136d3c92c5f | — |
| Linux | Linux | patch: 0 | — |
| Linux | Linux | de9cf16e39c0378716e9764fc0fbb6d4b45a1ee1 | — |
| Linux | Linux | 97b6c3f6e82a526d95dcfbfcf1c42ba44c61c3d6 | — |
| Linux | Linux | patch: 7.4-rc1 | — |
| Linux | Linux | bcc43b2f7410eddb21f73e9a650499a6432c9383 | — |
| Linux | Linux | 6.18.40 <6.18.64 | — |
| Linux | Linux | patch: 6.1.193 | — |
| Linux | Linux | 6fcca16a2b19c37f60693c56cbc0c923364ff3ef <439dcd4dce386c304fa7c1b56635195366c843a2 | — |
| Linux | Linux | 868432039a3fd7c2c0d515e48f33d5e43391666c | — |
| Linux | Linux | b51990be8411335c263b51e9f4def1e84bfaa923 | — |
| Linux | Linux | b7b26adc2718ca8f81ca75cd03aee94269d00e8a | — |
| Linux | Linux | ef6c5e4607483259a0daf6584e9e34ef643a655d | — |
| Linux | Linux | dae8f6ddc35cb1673dba32d2fd8f1f85cd377adf | — |
| Linux | Linux | patch: 6.18.64 | — |
| Linux | Linux | 6.1.178 <6.1.193 | — |
| Linux | Linux | 25b354f74b028a3f91b12e6b446256965744c477 | — |
| Linux | Linux | 0d0fa8425b29657b3d3e5bb36f50a50e57c8101f | — |
| Linux | Linux | 6fcca16a2b19c37f60693c56cbc0c923364ff3ef <0c9cb9321cb3863b52bdea4b8ae5a27705762c9e | — |
| Linux | Linux | 2fd16a94bea5e0c3e93791436cf8a800b175762a | — |
| Linux | Linux | patch: 5.10.275 | — |
| Linux | Linux | patch: 5.15.226 | — |
| Linux | Linux | 7.2 | — |
| Linux | Linux | 7.1.5 <7.2 | — |
| Linux | Linux | 089d149ccd7c3ac3d5e14ac65e558dcd9ec27583 | — |
| Linux | Linux | 6.6.145 <6.6.163 | — |
| Linux | Linux | aebdbe61b3960cd22b8bb6e70e3d94fb3bbb202c <5ba5a7d6cffc85f6e2ec94d3f2b422e8fe74c222 | — |
| Linux | Linux | ccf073cd4a2f783adc40b04db3805dbddaaf9f31 <aeb9ab8009b5c4f44c8aa06033586d3b4cb4a052 | — |
| Linux | Linux | 4ebe2c3a7db6332aab3655f8c552ca387c1dc199 | — |
| Linux | Linux | e1ecbaeec5fbf0b0e2d5810ec574f762d148771e <e43f63fce2a9e01a99885ffced90f40529aa86f1 | — |
| Linux | Linux | 56964e8039150a14462005458b25f19d6cad8f4a | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 7.3.4-1 | — |
| Debian 13 | linux | 6.12.118-1 | — |
| Debian 12 | linux | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 24.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu 26.10 | linux +8 | No fix yet | — |
| Ubuntu 26.04 LTS | linux +14 | No fix yet | — |
| Ubuntu 24.04 LTS | linux +52 | No fix yet | — |
Show 19 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | linux +59 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime +3 | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime +2 | No fix yet | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 24.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux +21 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +12 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux +7 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux +3 | No fix yet | — |
Advisories 1
- WID-SEC-2026-4889 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Nov 30, 2026
References
- https://git.kernel.org/stable/c/0ac836741b782fe2b463478f7e61e3a2459c72fe
- https://git.kernel.org/stable/c/aeb9ab8009b5c4f44c8aa06033586d3b4cb4a052
- https://git.kernel.org/stable/c/5ba5a7d6cffc85f6e2ec94d3f2b422e8fe74c222
- https://git.kernel.org/stable/c/e43f63fce2a9e01a99885ffced90f40529aa86f1
- https://git.kernel.org/stable/c/06f03a1313b8e9673761e2521219cc31228df4c1
- https://git.kernel.org/stable/c/e138768e628bd18f0b7c769b102b1317e9614796
- https://git.kernel.org/stable/c/439dcd4dce386c304fa7c1b56635195366c843a2
- https://git.kernel.org/stable/c/0c9cb9321cb3863b52bdea4b8ae5a27705762c9e