netfilter: nft_limit: avoid possible divide error in nft_limit_init
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 10 fixed, 3 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-369.
Summary
In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_limit: avoid possible divide error in nft_limit_init div_u64() divides u64 by u32. nft_limit_init() wants to divide u64 by u64, use the appropriate math function (div64_u64) divide error: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 8390 Comm: syz-executor188 Not tainted 5.12.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:div_u64_rem include/linux/math64.h:28 [inline] RIP: 0010:div_u64 include/linux/math64.h:127 [inline] RIP: 0010:nft_limit_init+0x2a2/0x5e0 net/netfilter/nft_limit.c:85 Code: ef 4c 01 eb 41 0f 92 c7 48 89 de e8 38 a5 22 fa 4d 85 ff 0f 85 97 02 00 00 e8 ea 9e 22 fa 4c 0f af f3 45 89 ed 31 d2 4c 89 f0 <49> f7 f5 49 89 c6 e8 d3 9e 22 fa 48 8d 7d 48 48 b8 00 00 00 00 00 RSP: 0018:ffffc90009447198 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000200000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff875152e6 RDI: 0000000000000003 RBP: ffff888020f80908 R08: 0000200000000000 R09: 0000000000000000 R10: ffffffff875152d8 R11: 0000000000000000 R12: ffffc90009447270 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 000000000097a300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200001c4 CR3: 0000000026a52000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nf_tables_newexpr net/netfilter/nf_tables_api.c:2675 [inline] nft_expr_init+0x145/0x2d0 net/netfilter/nf_tables_api.c:2713 nft_set_elem_expr_alloc+0x27/0x280 net/netfilter/nf_tables_api.c:5160 nf_tables_newset+0x1997/0x3150 net/netfilter/nf_tables_api.c:4321 nfnetlink_rcv_batch+0x85a/0x21b0 net/netfilter/nfnetlink.c:456 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:580 [inline] nfnetlink_rcv+0x3af/0x420 net/netfilter/nfnetlink.c:598 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1338 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1927 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:674 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2350 ___sys_sendmsg+0xf3/0x170 net/socket.c:2404 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2433 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 4.13 and later | 4.14.232, 4.19.189, 5.4.114, 5.10.32, 5.11.16, 5.12 | Patch available | CNA |
- Linux VendorLinux Affected 4.13 and later Fixed in 4.14.232, 4.19.189, 5.4.114, 5.10.32, 5.11.16, 5.12 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.13.0 to before 4.14.232; 4.15.0 to before 4.19.189; 4.20.0 to before 5.4.114; 5.5.0 to before 5.10.32; 5.11.0 to before 5.11.16 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 4.13.0 to before 4.14.232; 4.15.0 to before 4.19.189; 4.20.0 to before 5.4.114; 5.5.0 to before 5.10.32; 5.11.0 to before 5.11.16 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 4.14.232, 4.19.189, 5.4.114, 5.10.32, 5.11.16, 5.12
Red Hat 4 advisories
- RHSA-2024:2582 Released 2024-04-30 · Red Hat rating Moderatekernel security and bug fix update
- Red Hat Enterprise Linux BaseOS AUS (v.8.4) bpftool-4.18.0-305.130.1.el8_4, kernel-4.18.0-305.130.1.el8_4, kernel-abi-stablelists-4.18.0-305.130.1.el8_4 +14
- Red Hat Enterprise Linux BaseOS E4S (v.8.4) bpftool-4.18.0-305.130.1.el8_4, kernel-4.18.0-305.130.1.el8_4, kernel-abi-stablelists-4.18.0-305.130.1.el8_4 +14
- Red Hat Enterprise Linux BaseOS TUS (v.8.4) bpftool-4.18.0-305.130.1.el8_4, kernel-4.18.0-305.130.1.el8_4, kernel-abi-stablelists-4.18.0-305.130.1.el8_4 +14
- RHSA-2024:2585 Released 2024-04-30 · Red Hat rating Moderatekernel-rt security and bug fix update
- Red Hat Enterprise Linux NFV TUS (v.8.4) kernel-rt-4.18.0-305.130.1.rt7.206.el8_4, kernel-rt-core-4.18.0-305.130.1.rt7.206.el8_4, kernel-rt-debug-4.18.0-305.130.1.rt7.206.el8_4 +9
- Red Hat Enterprise Linux RT TUS (v.8.4) kernel-rt-4.18.0-305.130.1.rt7.206.el8_4, kernel-rt-core-4.18.0-305.130.1.rt7.206.el8_4, kernel-rt-debug-4.18.0-305.130.1.rt7.206.el8_4 +7
- RHSA-2024:2006 Released 2024-04-23 · Red Hat rating Importantkernel security and bug fix update
- Red Hat Enterprise Linux BaseOS AUS (v. 8.2) bpftool-4.18.0-193.133.1.el8_2, kernel-4.18.0-193.133.1.el8_2, kernel-abi-whitelists-4.18.0-193.133.1.el8_2 +14
- Red Hat Enterprise Linux BaseOS E4S (v. 8.2) bpftool-4.18.0-193.133.1.el8_2, kernel-4.18.0-193.133.1.el8_2, kernel-abi-whitelists-4.18.0-193.133.1.el8_2 +14
- Red Hat Enterprise Linux BaseOS TUS (v. 8.2) bpftool-4.18.0-193.133.1.el8_2, kernel-4.18.0-193.133.1.el8_2, kernel-abi-whitelists-4.18.0-193.133.1.el8_2 +14
Show 1 more Red Hat advisories
- RHSA-2024:2008 Released 2024-04-23 · Red Hat rating Importantkernel-rt security update
- Red Hat Enterprise Linux Real Time TUS (v. 8.2) kernel-rt-4.18.0-193.133.1.rt13.184.el8_2, kernel-rt-core-4.18.0-193.133.1.rt13.184.el8_2, kernel-rt-debug-4.18.0-193.133.1.rt13.184.el8_2 +7
- Red Hat Enterprise Linux Real Time for NFV TUS (v. 8.2) kernel-rt-4.18.0-193.133.1.rt13.184.el8_2, kernel-rt-core-4.18.0-193.133.1.rt13.184.el8_2, kernel-rt-debug-4.18.0-193.133.1.rt13.184.el8_2 +9
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux BaseOS AUS (v. 8.2) | Fixed | RHSA-2024:2006 |
| Red Hat Enterprise Linux BaseOS AUS (v.8.4) | Fixed | RHSA-2024:2582 |
| Red Hat Enterprise Linux BaseOS E4S (v. 8.2) | Fixed | RHSA-2024:2006 |
| Red Hat Enterprise Linux BaseOS E4S (v.8.4) | Fixed | RHSA-2024:2582 |
| Red Hat Enterprise Linux BaseOS TUS (v. 8.2) | Fixed | RHSA-2024:2006 |
| Red Hat Enterprise Linux BaseOS TUS (v.8.4) | Fixed | RHSA-2024:2582 |
| Red Hat Enterprise Linux NFV TUS (v.8.4) | Fixed | RHSA-2024:2585 |
| Red Hat Enterprise Linux RT TUS (v.8.4) | Fixed | RHSA-2024:2585 |
| Red Hat Enterprise Linux Real Time TUS (v. 8.2) | Fixed | RHSA-2024:2008 |
| Red Hat Enterprise Linux Real Time for NFV TUS (v. 8.2) | Fixed | RHSA-2024:2008 |
Not affected: 1 product
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2021-46915
- 2026-10-03 Alias added: GHSA-99vg-6g53-53wq
References
Patch 6
- https://git.kernel.org/stable/c/9065ccb9ec92c5120e7e97958397ebdb454f23d6
- https://git.kernel.org/stable/c/fadd3c4afdf3d4c21f4d138502f8b76334987e26
- https://git.kernel.org/stable/c/01fb1626b620cb37a65ad08e0f626489e8f042ef
- https://git.kernel.org/stable/c/dc1732baa9da5b68621586bf8636ebbc27dc62d2
- https://git.kernel.org/stable/c/1bb3ee4259936cc3b2d80a4a480bbb4868575071
- https://git.kernel.org/stable/c/b895bdf5d643b6feb7c60856326dd4feb6981560
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2021-46915 · CVE Program
- CVE-2021-46915 · NVD
- FIRST EPSS
- GHSA-99vg-6g53-53wq · GitHub Advisory Database · CC BY 4.0
- CVE-2021-46915 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences