CVE-2024-56631: Linux kernel · scsi: sg: Fix slab-use-after-free read in sg_release()
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 10 Nov 2026, 14:17 UTC
Sources agree
| CNA (Linux) | CVSS 3.1 | 7.8 |
|---|---|---|
| CISA-ADP | CVSS 3.1 | 7.8 |
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Dec 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 10 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux | Affected
| Fixed in– |
AI-suggested
A fix for this vulnerability has been implemented and tested. Users should apply the official Linux kernel patch that reorders the kref_put() call in sg_release() to occur after the mutex unlock. No additional mitigation is required once the patch is applied.
Description
CVE-2024-56631 is a use-after-free vulnerability in the Linux kernel's SCSI generic (sg) driver, specifically in the sg_release() function. The flaw occurs because the reference count decrement and potential cleanup of an object happen before releasing a mutex, leading to possible access of freed memory. This bug has been fixed by reordering the reference count decrement to occur after the mutex is unlocked, preventing use-after-free errors.
References
- git.kernel.org/stable/c/e19acb1926c4a1f30ee1ec84d8afba2d975bd534 (opens in a new tab)
- git.kernel.org/stable/c/285ce1f89f8d414e7eecab5ef5118cd512596318 (opens in a new tab)
- git.kernel.org/stable/c/198b89dd5a595ee3f96e5ce5c448b0484cd0e53c (opens in a new tab)
- git.kernel.org/stable/c/275b8347e21ab8193e93223a8394a806e4ba8918 (opens in a new tab)
- git.kernel.org/stable/c/59b30afa578637169e2819536bb66459fdddc39d (opens in a new tab)
- git.kernel.org/stable/c/1f5e2f1ca5875728fcf62bc1a054707444ab4960 (opens in a new tab)
- git.kernel.org/stable/c/f10593ad9bc36921f623361c9e3dd96bd52d85ee (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/03/msg00001.html (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/03/msg00002.html (opens in a new tab)
- cert-portal.siemens.com/productcert/html/ssa-265688.html (opens in a new tab)
- cert-portal.siemens.com/productcert/html/ssa-019113.html (opens in a new tab)
- cert-portal.siemens.com/productcert/html/ssa-457936.html (opens in a new tab)