GHSA-JXQ8-2VG6-XQ74

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

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.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-138825"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:17:36Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: core: Initialize modelist in framebuffer_alloc()\n\nframebuffer_alloc() returns zeroed memory, so info-\u003emodelist starts out\nwith NULL next and prev pointers. The list head is initialized only\nlater, by fb_videomode_to_modelist() or by do_register_framebuffer().\n\nThe \"fix potential memory leak\" commits listed below added\nfb_destroy_modelist(\u0026info-\u003emodelist) to the probe error paths of s3fb,\ntdfxfb, tridentfb, i740fb and carminefb. These paths can run before\nthe list head is initialized:\n\n - s3fb, tdfxfb, tridentfb and i740fb call fb_videomode_to_modelist()\n   only after a successful EDID read, and tridentfb can also hit the\n   error path on an ioremap() or kmalloc() failure before that;\n - carminefb jumps to the error path when fb_find_mode() fails, before\n   its fb_videomode_to_modelist() call.\n\nfb_destroy_modelist() then dereferences the NULL head. Reproduced on\nDebian 12 (6.1.180) by binding s3fb to a VGA device without EDID and\nforcing fb_alloc_cmap() to fail:\n\n  s3fb 0000:00:03.0: cannot allocate colormap\n  BUG: kernel NULL pointer dereference, address: 0000000000000000\n  RIP: 0010:fb_destroy_modelist+0x10/0x80\n  Call Trace:\n   s3_pci_probe.cold+0x12b/0x2bf [s3fb]\n   local_pci_probe+0x41/0x80\n   pci_device_probe+0xc3/0x240\n   really_probe+0xde/0x380\n   __driver_probe_device+0x84/0x150\n   driver_probe_device+0x1f/0x90\n   __driver_attach+0xce/0x1c0\n   bus_for_each_dev+0x87/0xd0\n   bus_add_driver+0x1ae/0x200\n   driver_register+0x89/0xe0\n   do_one_initcall+0x59/0x220\n   do_init_module+0x4a/0x1f0\n\nInitialize the list head in framebuffer_alloc(), so info-\u003emodelist is\nalways a valid, possibly empty, list and fb_destroy_modelist() is safe\non every error path. Keep the lazy initialization in\ndo_register_framebuffer(), as drivers that embed struct fb_info rather\nthan calling framebuffer_alloc() still depend on it.",
  "id": "GHSA-jxq8-2vg6-xq74",
  "modified": "2026-11-30T15:32:05Z",
  "published": "2026-11-30T15:32:05Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138825"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/06f03a1313b8e9673761e2521219cc31228df4c1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0ac836741b782fe2b463478f7e61e3a2459c72fe"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0c9cb9321cb3863b52bdea4b8ae5a27705762c9e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/439dcd4dce386c304fa7c1b56635195366c843a2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5ba5a7d6cffc85f6e2ec94d3f2b422e8fe74c222"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/aeb9ab8009b5c4f44c8aa06033586d3b4cb4a052"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e138768e628bd18f0b7c769b102b1317e9614796"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e43f63fce2a9e01a99885ffced90f40529aa86f1"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.