GHSA-7XX6-8R25-7MXP

Vulnerability from github – Published: 2026-11-19 15:31 – Updated: 2026-11-22 12:31
VLAI
Details

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

ocfs2/dlm: hold the lookup reference across convert AST enqueue

dlm_convert_lock_handler() drops the reference it took when it found the lock on res->granted at its leave label, one statement before it calls dlm_queue_ast(). dlm_free_dead_locks() takes res->spinlock and drops the list and base references, so a peer death landing in that gap leaves the handler's own put as the one that frees the lock, and __dlm_queue_ast() then reads lock->lockres from freed memory.

The handler is registered next to dlm_create_lock_handler(), so a convert message buffered on a dying peer's socket arrives on the same o2net receive work that o2net_disconnect_node() does not wait for. The two can interleave as follows, with the reference counts as they are before this fix:

Socket data-ready Node-down thread Receive worker ----------------- ---------------- -------------- o2net_data_ready() select sc under callback read lock o2net_disconnect_node() queue shutdown begin flush; new color queue sc_rx_work in the new color release callback lock shutdown socket flush returns read buffered convert_lock dlm_convert_lock_handler() find lock on res->granted dlm_lock_get() refs = 3 lock res->spinlock __dlmconvert_master() call_ast = 1 unlock res->spinlock DLM node-down cleanup lock res->spinlock dlm_free_dead_locks() unlink lock put list ref refs = 2 put base ref refs = 1 unlock res->spinlock dlm_lock_put() refs = 0 free lock dlm_queue_ast() __dlm_queue_ast() read lock->lockres (use-after-free)

__dlmconvert_master() only moves the lock between lists, so the count entering the gap is base, list and lookup. Drop the lookup reference after the AST is queued instead of before it and the race ends with the one __dlm_queue_ast() took, which dlm_flush_asts() releases later with ast_pending cleared and ast_list unlinked. No extra get is needed, and the normal case ends with the same count as before.

dlmconvert_master() has the same shape but is only reached from dlmlock() for a lock this node owns, which dlm_free_dead_locks() never matches.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-99432"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-19T15:17:56Z",
    "severity": "HIGH"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2/dlm: hold the lookup reference across convert AST enqueue\n\ndlm_convert_lock_handler() drops the reference it took when it found the\nlock on res-\u003egranted at its leave label, one statement before it calls\ndlm_queue_ast().  dlm_free_dead_locks() takes res-\u003espinlock and drops the\nlist and base references, so a peer death landing in that gap leaves the\nhandler\u0027s own put as the one that frees the lock, and __dlm_queue_ast()\nthen reads lock-\u003elockres from freed memory.\n\nThe handler is registered next to dlm_create_lock_handler(), so a convert\nmessage buffered on a dying peer\u0027s socket arrives on the same o2net\nreceive work that o2net_disconnect_node() does not wait for.  The two can\ninterleave as follows, with the reference counts as they are before this\nfix:\n\n  Socket data-ready       Node-down thread      Receive worker\n  -----------------       ----------------      --------------\n  o2net_data_ready()\n    select sc under\n    callback read lock\n                          o2net_disconnect_node()\n                            queue shutdown\n                            begin flush; new color\n    queue sc_rx_work\n    in the new color\n    release callback lock\n                            shutdown socket\n                            flush returns\n                                                read buffered convert_lock\n                                                dlm_convert_lock_handler()\n                                                  find lock on res-\u003egranted\n                                                  dlm_lock_get()  refs = 3\n                                                  lock res-\u003espinlock\n                                                  __dlmconvert_master()\n                                                    call_ast = 1\n                                                  unlock res-\u003espinlock\n                          DLM node-down cleanup\n                            lock res-\u003espinlock\n                            dlm_free_dead_locks()\n                              unlink lock\n                              put list ref  refs = 2\n                              put base ref  refs = 1\n                            unlock res-\u003espinlock\n                                                dlm_lock_put()  refs = 0\n                                                  free lock\n                                                dlm_queue_ast()\n                                                  __dlm_queue_ast()\n                                                  read lock-\u003elockres\n                                                  (use-after-free)\n\n__dlmconvert_master() only moves the lock between lists, so the count\nentering the gap is base, list and lookup.  Drop the lookup reference\nafter the AST is queued instead of before it and the race ends with the\none __dlm_queue_ast() took, which dlm_flush_asts() releases later with\nast_pending cleared and ast_list unlinked.  No extra get is needed, and\nthe normal case ends with the same count as before.\n\ndlmconvert_master() has the same shape but is only reached from dlmlock()\nfor a lock this node owns, which dlm_free_dead_locks() never matches.",
  "id": "GHSA-7xx6-8r25-7mxp",
  "modified": "2026-11-22T12:31:14Z",
  "published": "2026-11-19T15:31:24Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99432"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/125fe08ff6cfa064e1212f586f01993ee45c0330"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/574aa7782c780b130463e1d7c0605a9e617880d1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a3dd8d3af023837516d8715393acbaa7b252f6d7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ecc5b17b8d2b1f720262e991896da2c909154a4d"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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.

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.


Loading…