Skip to main content
VulnerabilityPublished Updated

CVE-2024-56631: Linux kernel · scsi: sg: Fix slab-use-after-free read in sg_release()

Affects Linux kernelSource GCVE Database

0
Compare

Not known to be exploited · CVSS 7.8 High.

Data as of 10 Nov 2026, 14:17 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.

Sources agree

CVSS scores by source
CNA (Linux)CVSS 3.17.8
CISA-ADPCVSS 3.17.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Dec 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Linux LinuxAffected
  • =3.16.85
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

Community reviews

Loading reviews…