# CVE-2021-46915: netfilter: nft\_limit: avoid possible divide error in nft\_limit\_init

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-28)
- **CWE:** CWE-369
- **Published:** 2024-02-27T06:53:54.148Z
- **Modified:** 2026-06-17T04:15:50.133Z

## Who should check

- Anyone running Linux \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< 9065ccb9ec92c5120e7e97958397ebdb454f23d6; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< fadd3c4afdf3d4c21f4d138502f8b76334987e26; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< 01fb1626b620cb37a65ad08e0f626489e8f042ef; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< dc1732baa9da5b68621586bf8636ebbc27dc62d2; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< 1bb3ee4259936cc3b2d80a4a480bbb4868575071; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< b895bdf5d643b6feb7c60856326dd4feb6981560
- Anyone running Linux 4.13

## Description

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

## Affected and fixed versions

- Linux: \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< 9065ccb9ec92c5120e7e97958397ebdb454f23d6; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< fadd3c4afdf3d4c21f4d138502f8b76334987e26; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< 01fb1626b620cb37a65ad08e0f626489e8f042ef; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< dc1732baa9da5b68621586bf8636ebbc27dc62d2; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< 1bb3ee4259936cc3b2d80a4a480bbb4868575071; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< b895bdf5d643b6feb7c60856326dd4feb6981560 (cvelist)
- Linux: 4.13 (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-2021-46915. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-46915.md
Affected: Linux >= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, < 9065ccb9ec92c5120e7e97958397ebdb454f23d6; >= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, < fadd3c4afdf3d4c21f4d138502f8b76334987e26; >= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, < 01fb1626b620cb37a65ad08e0f626489e8f042ef; >= c26844eda9d4fdbd266660e…
Fixed in: Linux 9065ccb9ec92c5120e7e97958397ebdb454f23d6, Linux 01fb1626b620cb37a65ad08e0f626489e8f042ef, Linux 1bb3ee4259936cc3b2d80a4a480bbb4868575071

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-2021-46915 being exploited?

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

### How serious is CVE-2021-46915?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-46915?

Linux \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< 9065ccb9ec92c5120e7e97958397ebdb454f23d6; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< fadd3c4afdf3d4c21f4d138502f8b76334987e26; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< 01fb1626b620cb37a65ad08e0f626489e8f042ef; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< dc1732baa9da5b68621586bf8636ebbc27dc62d2; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< 1bb3ee4259936cc3b2d80a4a480bbb4868575071; \>= c26844eda9d4fdbd266660e3b3de2d0270e3a1ed, \< b895bdf5d643b6feb7c60856326dd4feb6981560; Linux 4.13.

### Is there a fix for CVE-2021-46915?

Yes. Fixed in Linux 9065ccb9ec92c5120e7e97958397ebdb454f23d6, Linux 01fb1626b620cb37a65ad08e0f626489e8f042ef, Linux 1bb3ee4259936cc3b2d80a4a480bbb4868575071. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-46915?

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/9065ccb9ec92c5120e7e97958397ebdb454f23d6>
- patch: <https://git.kernel.org/stable/c/fadd3c4afdf3d4c21f4d138502f8b76334987e26>
- patch: <https://git.kernel.org/stable/c/01fb1626b620cb37a65ad08e0f626489e8f042ef>
- patch: <https://git.kernel.org/stable/c/dc1732baa9da5b68621586bf8636ebbc27dc62d2>
- patch: <https://git.kernel.org/stable/c/1bb3ee4259936cc3b2d80a4a480bbb4868575071>
- patch: <https://git.kernel.org/stable/c/b895bdf5d643b6feb7c60856326dd4feb6981560>

## 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-2021-46915>

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