CVE-2024-45016
Last modified
CVE-2024-45016 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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.. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.0, < 5.4.283 | — |
| Linux | Linux Kernel | >= 5.5, < 5.10.225 | — |
| Linux | Linux Kernel | >= 5.11, < 5.15.166 | — |
| Linux | Linux Kernel | >= 5.16, < 6.1.107 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.48 | — |
| Linux | Linux Kernel | >= 6.7, < 6.10.7 | — |
| Linux | Linux Kernel | 6.11 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-45016?
How severe is CVE-2024-45016?
How do I fix CVE-2024-45016?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-45010In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-45011In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-45012In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-45013In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-45014In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-45015In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-45017In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-45018In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-45019In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-4502A vulnerability classified as critical has been found in Rui…7.2
- CVE-2024-45020In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-45021In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-45016?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
