# scsi: sg: Fix slab-use-after-free read in sg_release()

CVE record · `CVE-2024-56631`

- **Identifiers:** `CVE-2024-56631`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Weakness (CWE):** [CWE-416](https://cwe.mitre.org/data/definitions/416.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 27 Dec 2024
- **Updated:** 10 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 27 Dec 2024, 15:02 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `cc833acbee9db5ca8c6162b015b4c93863c6f821 to before e19acb1926c4a1f30ee1ec84d8afba2d975bd534` (git)
  - affected: `cc833acbee9db5ca8c6162b015b4c93863c6f821 to before 285ce1f89f8d414e7eecab5ef5118cd512596318` (git)
  - affected: `cc833acbee9db5ca8c6162b015b4c93863c6f821 to before 198b89dd5a595ee3f96e5ce5c448b0484cd0e53c` (git)
  - affected: `cc833acbee9db5ca8c6162b015b4c93863c6f821 to before 275b8347e21ab8193e93223a8394a806e4ba8918` (git)
  - affected: `cc833acbee9db5ca8c6162b015b4c93863c6f821 to before 59b30afa578637169e2819536bb66459fdddc39d` (git)
  - affected: `cc833acbee9db5ca8c6162b015b4c93863c6f821 to before 1f5e2f1ca5875728fcf62bc1a054707444ab4960` (git)
  - affected: `cc833acbee9db5ca8c6162b015b4c93863c6f821 to before f10593ad9bc36921f623361c9e3dd96bd52d85ee` (git)
  - affected: `3a27c0defb0315760100f8b1adc7c4acbe04c884` (git)
  - affected: `3.16.85 to before 3.17` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `3.17`
  - unaffected: `before 3.17` (semver)
  - unaffected: `5.4.290 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.234 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.177 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.127 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.66 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.5 to 6.12.*, inclusive` (semver)
  - unaffected: `6.13 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel SCSI generic (sg) driver, from version 3.17, has a use-after-free read in sg_release(). The source gives few details on attack requirements or impact. Upgrade to 5.4.290, 5.10.234, 5.15.177, 6.1.127, or a later release in those series.

Written 19 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux) (used for this record)
- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0029, the 21st percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 27 Dec 2024, 15:02 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2024-56631)
- 27 Dec 2024, 15:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-56631)

## Sources

- [CVE List: CVE-2024-56631](https://www.cve.org/CVERecord?id=CVE-2024-56631)
- [NVD: CVE-2024-56631](https://nvd.nist.gov/vuln/detail/CVE-2024-56631)

### References from the CNA

- <https://git.kernel.org/stable/c/e19acb1926c4a1f30ee1ec84d8afba2d975bd534>
- <https://git.kernel.org/stable/c/285ce1f89f8d414e7eecab5ef5118cd512596318>
- <https://git.kernel.org/stable/c/198b89dd5a595ee3f96e5ce5c448b0484cd0e53c>
- <https://git.kernel.org/stable/c/275b8347e21ab8193e93223a8394a806e4ba8918>
- <https://git.kernel.org/stable/c/59b30afa578637169e2819536bb66459fdddc39d>
- <https://git.kernel.org/stable/c/1f5e2f1ca5875728fcf62bc1a054707444ab4960>
- <https://git.kernel.org/stable/c/f10593ad9bc36921f623361c9e3dd96bd52d85ee>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2024-56631>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2024-56631/>. Everything for agents: <https://agentprime.io/llms.txt>.
