GHSA-W667-GFQ7-J3QR

Vulnerability from github – Published: 2026-12-03 12:31 – Updated: 2026-12-03 12:31
VLAI
Details

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

gpio: virtuser: remove the debugfs files before freeing the line data

gpio_virtuser_probe() registers the devm action that removes the debugfs directory before it allocates the per-line and per-array data that the debugfs files point to. devres releases resources in reverse order, so on unbind the line data is freed, the consumer_lock mutex is destroyed and the GPIO descriptors are put first, and the debugfs files are only removed afterwards.

A read or write of any of the per-line debugfs files (value, direction, consumer, interrupts, ...) that runs in that window dereferences the freed data. debugfs_remove_recursive() waits for in-flight file operations, but by then the data has already been freed.

Running eight threads that read the per-line debugfs files while another task writes 1 and 0 to the configfs "live" attribute triggers this within a second on a KASAN kernel, with gpio-sim as the provider:

BUG: KASAN: slab-use-after-free in gpio_virtuser_value_get+0x19/0x60 Read of size 8 at addr ffff888005109e38 by task vu_race/3479 Call Trace: gpio_virtuser_value_get+0x19/0x60 simple_attr_read+0x109/0x290 debugfs_attr_read+0x5e/0x80 full_proxy_read+0xae/0xe0 vfs_read+0x1bc/0x7a0 Allocated by task 1: devm_kmalloc+0x89/0x1d0 gpio_virtuser_probe+0x56f/0x910 Freed by task 1: kfree+0x196/0x430 release_nodes+0x77/0xa0 devres_release_all+0xf3/0x150 device_unbind_cleanup+0x18/0x130 ... platform_device_unregister+0x3c/0x50 gpio_virtuser_device_deactivate+0x3c/0xc0

The same run also reports use-after-free on the freed consumer_lock from the consumer attribute.

Register the debugfs removal action after the line data has been set up, so that it runs first on unbind, and remove the directory by hand on the probe error paths before that point.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-143054"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-12-03T10:17:34Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: virtuser: remove the debugfs files before freeing the line data\n\ngpio_virtuser_probe() registers the devm action that removes the debugfs\ndirectory before it allocates the per-line and per-array data that the\ndebugfs files point to. devres releases resources in reverse order, so\non unbind the line data is freed, the consumer_lock mutex is destroyed\nand the GPIO descriptors are put first, and the debugfs files are only\nremoved afterwards.\n\nA read or write of any of the per-line debugfs files (value, direction,\nconsumer, interrupts, ...) that runs in that window dereferences the\nfreed data. debugfs_remove_recursive() waits for in-flight file\noperations, but by then the data has already been freed.\n\nRunning eight threads that read the per-line debugfs files while\nanother task writes 1 and 0 to the configfs \"live\" attribute triggers\nthis within a second on a KASAN kernel, with gpio-sim as the provider:\n\n  BUG: KASAN: slab-use-after-free in gpio_virtuser_value_get+0x19/0x60\n  Read of size 8 at addr ffff888005109e38 by task vu_race/3479\n  Call Trace:\n   gpio_virtuser_value_get+0x19/0x60\n   simple_attr_read+0x109/0x290\n   debugfs_attr_read+0x5e/0x80\n   full_proxy_read+0xae/0xe0\n   vfs_read+0x1bc/0x7a0\n  Allocated by task 1:\n   devm_kmalloc+0x89/0x1d0\n   gpio_virtuser_probe+0x56f/0x910\n  Freed by task 1:\n   kfree+0x196/0x430\n   release_nodes+0x77/0xa0\n   devres_release_all+0xf3/0x150\n   device_unbind_cleanup+0x18/0x130\n   ...\n   platform_device_unregister+0x3c/0x50\n   gpio_virtuser_device_deactivate+0x3c/0xc0\n\nThe same run also reports use-after-free on the freed consumer_lock\nfrom the consumer attribute.\n\nRegister the debugfs removal action after the line data has been set\nup, so that it runs first on unbind, and remove the directory by hand\non the probe error paths before that point.",
  "id": "GHSA-w667-gfq7-j3qr",
  "modified": "2026-12-03T12:31:03Z",
  "published": "2026-12-03T12:31:03Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143054"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/37afe25c6e20b71d429feda8ae3ed0b57e4211c8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3aad9f26babf4579ecb3d44b21305669e40fddf8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c204a4c377bd43f68b6a3c1d25b455a1e89ed48e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c2d0710318b8cd57d0ef6088d0ee4bbc1e827fd3"
    }
  ],
  "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.