CVE-2024-42321
kernel: net: flow_dissector: use DEBUG_NET_WARN_ON_ONCE
Overview
Description
In the Linux kernel, the following vulnerability has been resolved:
net: flow_dissector: use DEBUG_NET_WARN_ON_ONCE
The following splat is easy to reproduce upstream as well as in -stable
kernels. Florian Westphal provided the following commit:
d1dab4f71d37 ("net: add and use __skb_get_hash_symmetric_net")
but this complementary fix has been also suggested by Willem de Bruijn
and it can be easily backported to -stable kernel which consists in
using DEBUG_NET_WARN_ON_ONCE instead to silence the following splat
given __skb_get_hash() is used by the nftables tracing infrastructure to
to identify packets in traces.
[69133.561393] ------------[ cut here ]------------
[69133.561404] WARNING: CPU: 0 PID: 43576 at net/core/flow_dissector.c:1104 __skb_flow_dissect+0x134f/
[...]
[69133.561944] CPU: 0 PID: 43576 Comm: socat Not tainted 6.10.0-rc7+ #379
[69133.561959] RIP: 0010:__skb_flow_dissect+0x134f/0x2ad0
[69133.561970] Code: 83 f9 04 0f 84 b3 00 00 00 45 85 c9 0f 84 aa 00 00 00 41 83 f9 02 0f 84 81 fc ff
ff 44 0f b7 b4 24 80 00 00 00 e9 8b f9 ff ff <0f> 0b e9 20 f3 ff ff 41 f6 c6 20 0f 84 e4 ef ff ff 48 8d 7b 12 e8
[69133.561979] RSP: 0018:ffffc90000006fc0 EFLAGS: 00010246
[69133.561988] RAX: 0000000000000000 RBX: ffffffff82f33e20 RCX: ffffffff81ab7e19
[69133.561994] RDX: dffffc0000000000 RSI: ffffc90000007388 RDI: ffff888103a1b418
[69133.562001] RBP: ffffc90000007310 R08: 0000000000000000 R09: 0000000000000000
[69133.562007] R10: ffffc90000007388 R11: ffffffff810cface R12: ffff888103a1b400
[69133.562013] R13: 0000000000000000 R14: ffffffff82f33e2a R15: ffffffff82f33e28
[69133.562020] FS: 00007f40f7131740(0000) GS:ffff888390800000(0000) knlGS:0000000000000000
[69133.562027] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[69133.562033] CR2: 00007f40f7346ee0 CR3: 000000015d200001 CR4: 00000000001706f0
[69133.562040] Call Trace:
[69133.562044] <IRQ>
[69133.562049] ? __warn+0x9f/0x1a0
[ 1211.841384] ? __skb_flow_dissect+0x107e/0x2860
[...]
[ 1211.841496] ? bpf_flow_dissect+0x160/0x160
[ 1211.841753] __skb_get_hash+0x97/0x280
[ 1211.841765] ? __skb_get_hash_symmetric+0x230/0x230
[ 1211.841776] ? mod_find+0xbf/0xe0
[ 1211.841786] ? get_stack_info_noinstr+0x12/0xe0
[ 1211.841798] ? bpf_ksym_find+0x56/0xe0
[ 1211.841807] ? __rcu_read_unlock+0x2a/0x70
[ 1211.841819] nft_trace_init+0x1b9/0x1c0 [nf_tables]
[ 1211.841895] ? nft_trace_notify+0x830/0x830 [nf_tables]
[ 1211.841964] ? get_stack_info+0x2b/0x80
[ 1211.841975] ? nft_do_chain_arp+0x80/0x80 [nf_tables]
[ 1211.842044] nft_do_chain+0x79c/0x850 [nf_tables]
Source: OX vulnerability database
Severity
5.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 42 fixes
Oracle Linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 9 | kernel +28 | 5.14.0-570.12.1.0.1.el9_6 |
| 9 | bpftool | 7.5.0-802.el9_6 |
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | bpftool +9 | 5.10.244-2.ph4 |
| 5.0 | bpftool +10 | 6.1.106-1.ph5 |
Red Hat 3 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | bpftool +25 | eol | — |
| 8 | bpftool +45 | affected | — |
| 9 | kernel-rt +20 | affected | — |
| 9 | kernel +73 | 0:5.14.0-570.12.1.el9_6 | RHSA-2025:6966 |
amazon linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | kernel-livepatch-6-1-106-116-188 | 1.0-0.amzn2023 |
| 2023 | bpftool +19 | 6.1.106-116.188.amzn2023 |
debian 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux | affected |
| 11 | linux-6-1 | 6.1.119-1~deb11u1 |
| 12 | linux | 6.1.106-1 |
| 13 | linux | 6.10.3-1 |
| 14 | linux | 6.10.3-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 6.1.106-1 |
root.io debian 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux +1 | 5.10.251-5.root.io.85 |
| 12 | rootio-linux | 6.1.106-1 |
| 13 | rootio-linux | 6.10.3-1 |
root.io ubuntu 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | linux +1 | 5.15.0-179.189.root.io.88 |
| 24.04 | rootio-linux | 6.8.0-50.51 |
ubuntu 2 releases · 20 packages
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | linux +16 | affected |
| 22.04 | linux-ibm-6-8 | 6.8.0-1017.17~22.04.1 |
| 22.04 | linux-oracle-6-8 | 6.8.0-1017.18~22.04.1 |
| 22.04 | linux-gcp-6-8 +1 | 6.8.0-1019.21~22.04.1 |
| 22.04 | linux-aws-6-8 | 6.8.0-1020.22~22.04.1 |
| 22.04 | linux-azure-6-8 | 6.8.0-1020.23~22.04.1 |
15 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-42321
- git.kernel.org https://git.kernel.org/linus/120f1c857a73e52132e473dee89b340440cb692b (6.11-rc1)
- git.kernel.org https://git.kernel.org/stable/c/120f1c857a73e52132e473dee89b340440cb692b
- git.kernel.org https://git.kernel.org/stable/c/4afbac11f2f629d1e62817c4e210bdfaa7521107
- git.kernel.org https://git.kernel.org/stable/c/c5d21aabf1b31a79f228508af33aee83456bc1b0
- git.kernel.org https://git.kernel.org/stable/c/eb03d9826aa646577342a952d658d4598381c035
- linux.oracle.com https://linux.oracle.com/cve/CVE-2024-42321.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-6966.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
- lore.kernel.org https://lore.kernel.org/linux-cve-announce/2024081755-CVE-2024-42321-4b46@gregkh/T
Show all 17 references
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-42321
- ubuntu.com https://ubuntu.com/security/notices/USN-7154-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7154-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7155-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7156-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7196-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-42321
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.