# tipc: Fix use-after-free of kernel socket in cleanup_bearer().

CVE record · `CVE-2024-56642`

- **Identifiers:** `CVE-2024-56642`
- **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:** 5 Aug 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: `d1f76dfadaf8f47ed1753f97dbcbd41c16215ffa to before 4e69457f9dfae67435f3ccf29008768eae860415` (git)
  - affected: `5195ec5e365a2a9331bfeb585b613a6e94f98dba to before 650ee9a22d7a2de8999fac2d45983597a0c22359` (git)
  - affected: `04c26faa51d1e2fe71cf13c45791f5174c37f986 to before d2a4894f238551eae178904e7f45af87577074fd` (git)
  - affected: `04c26faa51d1e2fe71cf13c45791f5174c37f986 to before d62d5180c036eeac09f80660edc7a602b369125f` (git)
  - affected: `04c26faa51d1e2fe71cf13c45791f5174c37f986 to before d00d4470bf8c4282617a3a10e76b20a9c7e4cffa` (git)
  - affected: `04c26faa51d1e2fe71cf13c45791f5174c37f986 to before e48b211c4c59062cb6dd6c2c37c51a7cc235a464` (git)
  - affected: `04c26faa51d1e2fe71cf13c45791f5174c37f986 to before 6a2fa13312e51a621f652d522d7e2df7066330b6` (git)
  - affected: `b9f5b7ad4ac3af006443f535b1ce7bff1d130d7d` (git)
  - affected: `5.4.124 to before 5.4.287` (semver)
  - affected: `5.10.42 to before 5.10.231` (semver)
  - affected: `5.12.9 to before 5.13` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.13`
  - unaffected: `before 5.13` (semver)
  - unaffected: `5.4.287 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.231 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.174 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.120 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

## 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.0025, the 16th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 27 Dec 2024. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/4e69457f9dfae67435f3ccf29008768eae860415>
- <https://git.kernel.org/stable/c/650ee9a22d7a2de8999fac2d45983597a0c22359>
- <https://git.kernel.org/stable/c/d2a4894f238551eae178904e7f45af87577074fd>
- <https://git.kernel.org/stable/c/d62d5180c036eeac09f80660edc7a602b369125f>
- <https://git.kernel.org/stable/c/d00d4470bf8c4282617a3a10e76b20a9c7e4cffa>
- <https://git.kernel.org/stable/c/e48b211c4c59062cb6dd6c2c37c51a7cc235a464>
- <https://git.kernel.org/stable/c/6a2fa13312e51a621f652d522d7e2df7066330b6>

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-56642>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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