# CVE-2024-56644: net/ipv6: release expired exception dst cached in socket

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.00% (percentile 62, 2026-11-26)
- **Published:** 2024-12-27T15:02:45.664Z
- **Modified:** 2026-10-15T22:18:02.170Z

## Who should check

- Anyone running Linux \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< a95808252e8acc0123bacd2dff8b9af10bc145b7; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< b90d061345bb8cd51fece561a800bae1c95448a6; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< 0b8903e6c881f72c6849d4952de742c656eb5ab9; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< 535add1e9f274502209cb997801208bbe1ae6c6f; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< f43d12fd0fa8ee5b9caf8a3927e10d06431764d2; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< 8b591bd522b71c42a82898290e35d32b482047e4; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< 3301ab7d5aeb0fe270f73a3d4810c9d1b6a9f045; 9c93e9c757c7d3d96027a06b9b4c4e37ca87ded7; \>= 2.6.33.2, \< 2.6.34
- Anyone running Linux 2.6.34

## Description

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

net/ipv6: release expired exception dst cached in socket

Dst objects get leaked in ip6\_negative\_advice() when this function is
executed for an expired IPv6 route located in the exception table. There
are several conditions that must be fulfilled for the leak to occur:
\* an ICMPv6 packet indicating a change of the MTU for the path is received,
  resulting in an exception dst being created
\* a TCP connection that uses the exception dst for routing packets must
  start timing out so that TCP begins retransmissions
\* after the exception dst expires, the FIB6 garbage collector must not run
  before TCP executes ip6\_negative\_advice() for the expired exception dst

When TCP executes ip6\_negative\_advice() for an exception dst that has
expired and if no other socket holds a reference to the exception dst, the
refcount of the exception dst is 2, which corresponds to the increment
made by dst\_init() and the increment made by the TCP socket for which the
connection is timing out. The refcount made by the socket is never
released. The refcount of the dst is decremented in sk\_dst\_reset() but
that decrement is counteracted by a dst\_hold() intentionally placed just
before the sk\_dst\_reset() in ip6\_negative\_advice(). After
ip6\_negative\_advice() has finished, there is no other object tied to the
dst. The socket lost its reference stored in sk\_dst\_cache and the dst is
no longer in the exception table. The exception dst becomes a leaked
object.

As a result of this dst leak, an unbalanced refcount is reported for the
loopback device of a net namespace being destroyed under kernels that do
not contain e5f80fcf869a ("ipv6: give an IPv6 dev to blackhole\_netdev"):
unregister\_netdevice: waiting for lo to become free. Usage count = 2

Fix the dst leak by removing the dst\_hold() in ip6\_negative\_advice(). The
patch that introduced the dst\_hold() in ip6\_negative\_advice() was
92f1655aa2b22 ("net: fix \_\_dst\_negative\_advice() race"). But 92f1655aa2b22
merely refactored the code with regards to the dst refcount so the issue
was present even before 92f1655aa2b22. The bug was introduced in
54c1a859efd9f ("ipv6: Don't drop cache route entry unless timer actually
expired.") where the expired cached route is deleted and the sk\_dst\_cache
member of the socket is set to NULL by calling dst\_negative\_advice() but
the refcount belonging to the socket is left unbalanced.

The IPv4 version - ipv4\_negative\_advice() - is not affected by this bug.
When the TCP connection times out ipv4\_negative\_advice() merely resets the
sk\_dst\_cache of the socket while decrementing the refcount of the
exception dst.

## Affected and fixed versions

- Linux: \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< a95808252e8acc0123bacd2dff8b9af10bc145b7; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< b90d061345bb8cd51fece561a800bae1c95448a6; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< 0b8903e6c881f72c6849d4952de742c656eb5ab9; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< 535add1e9f274502209cb997801208bbe1ae6c6f; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< f43d12fd0fa8ee5b9caf8a3927e10d06431764d2; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< 8b591bd522b71c42a82898290e35d32b482047e4; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< 3301ab7d5aeb0fe270f73a3d4810c9d1b6a9f045; 9c93e9c757c7d3d96027a06b9b4c4e37ca87ded7; \>= 2.6.33.2, \< 2.6.34 (cvelist)
- Linux: 2.6.34 (cvelist)

## Mitigation

- Upgrade Linux to 2.6.34 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56644. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56644.md
Affected: Linux >= 54c1a859efd9fd6cda05bc700315ba2519c14eba, < a95808252e8acc0123bacd2dff8b9af10bc145b7; >= 54c1a859efd9fd6cda05bc700315ba2519c14eba, < b90d061345bb8cd51fece561a800bae1c95448a6; >= 54c1a859efd9fd6cda05bc700315ba2519c14eba, < 0b8903e6c881f72c6849d4952de742c656eb5ab9; >= 54c1a859efd9fd6cda05bc7…
Fixed in: Linux 0b8903e6c881f72c6849d4952de742c656eb5ab9, Linux 535add1e9f274502209cb997801208bbe1ae6c6f, Linux 8b591bd522b71c42a82898290e35d32b482047e4, Linux 3301ab7d5aeb0fe270f73a3d4810c9d1b6a9f045, Linux 2.6.34

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56644 being exploited?

There is no confirmed exploitation: CVE-2024-56644 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.00% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-56644?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-56644?

Linux \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< a95808252e8acc0123bacd2dff8b9af10bc145b7; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< b90d061345bb8cd51fece561a800bae1c95448a6; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< 0b8903e6c881f72c6849d4952de742c656eb5ab9; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< 535add1e9f274502209cb997801208bbe1ae6c6f; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< f43d12fd0fa8ee5b9caf8a3927e10d06431764d2; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< 8b591bd522b71c42a82898290e35d32b482047e4; \>= 54c1a859efd9fd6cda05bc700315ba2519c14eba, \< 3301ab7d5aeb0fe270f73a3d4810c9d1b6a9f045; 9c93e9c757c7d3d96027a06b9b4c4e37ca87ded7; \>= 2.6.33.2, \< 2.6.34; Linux 2.6.34.

### Is there a fix for CVE-2024-56644?

Yes. Fixed in Linux 0b8903e6c881f72c6849d4952de742c656eb5ab9, Linux 535add1e9f274502209cb997801208bbe1ae6c6f, Linux 8b591bd522b71c42a82898290e35d32b482047e4, Linux 3301ab7d5aeb0fe270f73a3d4810c9d1b6a9f045, Linux 2.6.34. Upgrade Linux to 2.6.34 or later.

### How do I check if I'm affected by CVE-2024-56644?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/a95808252e8acc0123bacd2dff8b9af10bc145b7>
- patch: <https://git.kernel.org/stable/c/b90d061345bb8cd51fece561a800bae1c95448a6>
- patch: <https://git.kernel.org/stable/c/0b8903e6c881f72c6849d4952de742c656eb5ab9>
- patch: <https://git.kernel.org/stable/c/535add1e9f274502209cb997801208bbe1ae6c6f>
- patch: <https://git.kernel.org/stable/c/f43d12fd0fa8ee5b9caf8a3927e10d06431764d2>
- patch: <https://git.kernel.org/stable/c/8b591bd522b71c42a82898290e35d32b482047e4>
- patch: <https://git.kernel.org/stable/c/3301ab7d5aeb0fe270f73a3d4810c9d1b6a9f045>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56644>

HTML: <https://flawdb.com/CVE-2024-56644> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56644>
