# CVE-2024-45016: netem: fix return value if duplicate enqueue fails

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-09-11T15:13:52.053Z
- **Modified:** 2026-10-15T01:18:51.280Z

## Who should check

- Anyone running Linux \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< 759e3e8c4a6a6b4e52ebc4547123a457f0ce90d4; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< c414000da1c2ea1ba9a5e5bb1a4ba774e51e202d; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< 52d99a69f3d556c6426048c9d481b912205919d8; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< 0486d31dd8198e22b63a4730244b38fffce6d469; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< 577d6c0619467fe90f7e8e57e45cb5bd9d936014; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< e5bb2988a310667abed66c7d3ffa28880cf0f883; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< c07ff8592d57ed258afee5a5e04991a48dbaf382; a550a01b8af856f2684b0f79d552f5119eb5006c; 009510a90e230bb495f3fe25c7db956679263b07; 4de7d30668cb8b06330992e1cd336f91700a2ce7; …
- Anyone running Linux 5.0

## Description

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

netem: fix return value if duplicate enqueue fails

There is a bug in netem\_enqueue() introduced by
commit 5845f706388a ("net: netem: fix skb length BUG\_ON in \_\_skb\_to\_sgvec")
that can lead to a use-after-free.

This commit made netem\_enqueue() always return NET\_XMIT\_SUCCESS
when a packet is duplicated, which can cause the parent qdisc's q.qlen
to be mistakenly incremented. When this happens qlen\_notify() may be
skipped on the parent during destruction, leaving a dangling pointer
for some classful qdiscs like DRR.

There are two ways for the bug happen:

- If the duplicated packet is dropped by rootq-\>enqueue() and then
  the original packet is also dropped.
- If rootq-\>enqueue() sends the duplicated packet to a different qdisc
  and the original packet is dropped.

In both cases NET\_XMIT\_SUCCESS is returned even though no packets
are enqueued at the netem qdisc.

The fix is to defer the enqueue of the duplicate packet until after
the original packet has been guaranteed to return NET\_XMIT\_SUCCESS.

## Affected and fixed versions

- Linux: \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< 759e3e8c4a6a6b4e52ebc4547123a457f0ce90d4; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< c414000da1c2ea1ba9a5e5bb1a4ba774e51e202d; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< 52d99a69f3d556c6426048c9d481b912205919d8; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< 0486d31dd8198e22b63a4730244b38fffce6d469; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< 577d6c0619467fe90f7e8e57e45cb5bd9d936014; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< e5bb2988a310667abed66c7d3ffa28880cf0f883; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< c07ff8592d57ed258afee5a5e04991a48dbaf382; a550a01b8af856f2684b0f79d552f5119eb5006c; 009510a90e230bb495f3fe25c7db956679263b07; 4de7d30668cb8b06330992e1cd336f91700a2ce7; … (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-45016.md
Affected: Linux >= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, < 759e3e8c4a6a6b4e52ebc4547123a457f0ce90d4; >= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, < c414000da1c2ea1ba9a5e5bb1a4ba774e51e202d; >= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, < 52d99a69f3d556c6426048c9d481b912205919d8; >= 5845f706388a4cde0f6b80f…
Fixed in: Linux 759e3e8c4a6a6b4e52ebc4547123a457f0ce90d4, Linux 52d99a69f3d556c6426048c9d481b912205919d8, Linux 0486d31dd8198e22b63a4730244b38fffce6d469, Linux 577d6c0619467fe90f7e8e57e45cb5bd9d936014

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-45016 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< 759e3e8c4a6a6b4e52ebc4547123a457f0ce90d4; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< c414000da1c2ea1ba9a5e5bb1a4ba774e51e202d; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< 52d99a69f3d556c6426048c9d481b912205919d8; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< 0486d31dd8198e22b63a4730244b38fffce6d469; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< 577d6c0619467fe90f7e8e57e45cb5bd9d936014; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< e5bb2988a310667abed66c7d3ffa28880cf0f883; \>= 5845f706388a4cde0f6b80f9e5d33527e942b7d9, \< c07ff8592d57ed258afee5a5e04991a48dbaf382; a550a01b8af856f2684b0f79d552f5119eb5006c; 009510a90e230bb495f3fe25c7db956679263b07; 4de7d30668cb8b06330992e1cd336f91700a2ce7; …; Linux 5.0.

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

Yes. Fixed in Linux 759e3e8c4a6a6b4e52ebc4547123a457f0ce90d4, Linux 52d99a69f3d556c6426048c9d481b912205919d8, Linux 0486d31dd8198e22b63a4730244b38fffce6d469, Linux 577d6c0619467fe90f7e8e57e45cb5bd9d936014. No fix listed yet: follow the vendor advisory.

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

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/759e3e8c4a6a6b4e52ebc4547123a457f0ce90d4>
- patch: <https://git.kernel.org/stable/c/c414000da1c2ea1ba9a5e5bb1a4ba774e51e202d>
- patch: <https://git.kernel.org/stable/c/52d99a69f3d556c6426048c9d481b912205919d8>
- patch: <https://git.kernel.org/stable/c/0486d31dd8198e22b63a4730244b38fffce6d469>
- patch: <https://git.kernel.org/stable/c/577d6c0619467fe90f7e8e57e45cb5bd9d936014>
- patch: <https://git.kernel.org/stable/c/e5bb2988a310667abed66c7d3ffa28880cf0f883>
- patch: <https://git.kernel.org/stable/c/c07ff8592d57ed258afee5a5e04991a48dbaf382>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.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-45016>

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