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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 4.13 | 4.14.232 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 5.10.38-1 | — |
| Debian 13 | linux | 5.10.38-1 | — |
| Debian 12 | linux | 5.10.38-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | linux-raspi-realtime | No fix yet | — |
| Ubuntu 22.04 LTS | linux-riscv +22 | No fix yet | — |
| Ubuntu 20.04 LTS | linux | 5.4.0-74.83 | — |
| Ubuntu 20.04 LTS | linux-aws | 5.4.0-1049.51 | — |
| Ubuntu 20.04 LTS | linux-azure | 5.4.0-1048.50 | — |
| Ubuntu 20.04 LTS | linux-bluefield | 5.4.0-1012.15 | — |
| Ubuntu 20.04 LTS | linux-gcp | 5.4.0-1044.47 | — |
| Ubuntu 20.04 LTS | linux-gke +26 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gkeop | 5.4.0-1016.17 | — |
| Ubuntu 20.04 LTS | linux-kvm | 5.4.0-1040.41 | — |
| Ubuntu 20.04 LTS | linux-oracle | 5.4.0-1046.50 | — |
| Ubuntu 20.04 LTS | linux-raspi | 5.4.0-1036.39 | — |
| Ubuntu 18.04 LTS | linux | 4.15.0-147.151 | — |
| Ubuntu 18.04 LTS | linux-aws | 4.15.0-1106.113 | — |
| Ubuntu 18.04 LTS | linux-aws-5.4 | 5.4.0-1049.51~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-azure-4.15 | 4.15.0-1118.131 | — |
| Ubuntu 18.04 LTS | linux-azure-5.4 | 5.4.0-1048.50~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp-4.15 | 4.15.0-1103.116 | — |
| Ubuntu 18.04 LTS | linux-gcp-5.4 | 5.4.0-1044.47~18.04.2 | — |
| Ubuntu 18.04 LTS | linux-hwe-5.4 | 5.4.0-74.83~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-kvm | 4.15.0-1094.96 | — |
| Ubuntu 18.04 LTS | linux-oracle | 4.15.0-1075.83 | — |
| Ubuntu 18.04 LTS | linux-oracle-5.4 | 5.4.0-1046.50~18.04.2 | — |
| Ubuntu 18.04 LTS | linux-raspi-5.4 | 5.4.0-1036.39~18.04.1 | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-aws-fips | 5.4.0-1069.73+fips2 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-azure-fips | 5.4.0-1073.76+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-gcp-fips | 5.4.0-1067.71~20.04.1 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-aws-fips | 4.15.0-2048.50 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-azure-fips | 4.15.0-2030.33 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips | 4.15.0-1063.71 | — |
| Ubuntu Pro 16.04 LTS | linux-aws-hwe | 4.15.0-1106.113~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-azure | 4.15.0-1118.131~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-gcp | 4.15.0-1103.116~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-hwe | 4.15.0-147.151~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-oracle | 4.15.0-1075.83~16.04.1 | — |
| Ubuntu Pro 14.04 LTS | linux-azure | 4.15.0-1118.131~14.04.1 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.4 TUS | kernel-rt +12 | 4.18.0-305.130.1.rt7.206.el8_4 | RHSA-2024:2585 |
| RHEL 8.4 TUS | perf +17 | 4.18.0-305.130.1.el8_4 | RHSA-2024:2582 |
| RHEL 8.4 E4S | perf +18 | 4.18.0-305.130.1.el8_4 | RHSA-2024:2582 |
| RHEL 8.4 AUS | perf +17 | 4.18.0-305.130.1.el8_4 | RHSA-2024:2582 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.2 TUS | kernel-rt +12 | 4.18.0-193.133.1.rt13.184.el8_2 | RHSA-2024:2008 |
| RHEL 8.2 TUS | perf +17 | 4.18.0-193.133.1.el8_2 | RHSA-2024:2006 |
| RHEL 8.2 E4S | perf +18 | 4.18.0-193.133.1.el8_2 | RHSA-2024:2006 |
| RHEL 8.2 AUS | perf +17 | 4.18.0-193.133.1.el8_2 | RHSA-2024:2006 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | kernel-64kb +6 | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SLES 15 SP3 | kernel-default-base | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SLES 15 SP3 | kernel-syms | 5.3.18-150300.59.153.1 | SUSE-SU-2024:0857-1 |
| SLES 15 SP2 | kernel-default-base | 5.3.18-150200.24.183.1.150200.9.93.2 | SUSE-SU-2024:0926-1 |
| SLES 15 SP2 | kernel-docs +5 | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SLES 12 SP5 | kernel-azure +2 | 4.12.14-16.173.1 | SUSE-SU-2024:0975-1 |
| SLES 12 SP5 | kernel-docs +3 | 4.12.14-122.201.1 | SUSE-SU-2024:0925-1 |
| SLES 12 SP5 | kernel-obs-build | 4.12.14-122.201.2 | SUSE-SU-2024:0925-1 |
Show 12 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP3 | kernel-default-base | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SLES for SAP 15 SP3 | kernel-docs +4 | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SLES for SAP 15 SP3 | kernel-syms | 5.3.18-150300.59.153.1 | SUSE-SU-2024:0857-1 |
| SLES for SAP 15 SP2 | kernel-default-base | 5.3.18-150200.24.183.1.150200.9.93.2 | SUSE-SU-2024:0926-1 |
| SLES for SAP 15 SP2 | kernel-docs +5 | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SLES for SAP 12 SP5 | kernel-azure +2 | 4.12.14-16.173.1 | SUSE-SU-2024:0975-1 |
| SLES for SAP 12 SP5 | kernel-syms +2 | 4.12.14-122.201.1 | SUSE-SU-2024:0925-1 |
| SLE Real Time 12 SP5 | kernel-rt +3 | 4.12.14-10.171.1 | SUSE-SU-2024:0976-1 |
| SLE Micro 5.2 | kernel-default | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SLE Micro 5.2 | kernel-default-base | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SLE Micro 5.2 | kernel-rt +1 | 5.3.18-150300.161.1 | SUSE-SU-2024:0856-1 |
| SLE Micro 5.1 | kernel-default | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SLE Micro 5.1 | kernel-default-base | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SLE Micro 5.1 | kernel-rt +1 | 5.3.18-150300.161.1 | SUSE-SU-2024:0856-1 |
| SLE Live Patching 15 SP3 | kernel-default | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SLE Live Patching 15 SP3 | kernel-livepatch-SLE15-SP3_Update_42 | 1-150300.7.3.2 | SUSE-SU-2024:0857-1 |
| SLE Live Patching 15 SP2 | kernel-default | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SLE Live Patching 15 SP2 | kernel-livepatch-SLE15-SP2_Update_46 | 1-150200.5.3.2 | SUSE-SU-2024:0926-1 |
| SLE Live Patching 12 SP5 | kernel-default | 4.12.14-122.201.1 | SUSE-SU-2024:0925-1 |
| SLE Live Patching 12 SP5 | kgraft-patch-SLE12-SP5_Update_54 | 1-8.7.1 | SUSE-SU-2024:0925-1 |
| SLE HPC 15 SP3 | kernel-64kb +5 | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SLE HPC 15 SP3 | kernel-default-base | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SLE HPC 15 SP3 | kernel-syms | 5.3.18-150300.59.153.1 | SUSE-SU-2024:0857-1 |
| SLE HPC 15 SP2 | kernel-default-base | 5.3.18-150200.24.183.1.150200.9.93.2 | SUSE-SU-2024:0926-1 |
| SLE HPC 15 SP2 | kernel-docs +5 | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE Enterprise Storage 7.1 | kernel-64kb +5 | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE Enterprise Storage 7.1 | kernel-default-base | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SUSE Enterprise Storage 7.1 | kernel-syms | 5.3.18-150300.59.153.1 | SUSE-SU-2024:0857-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | kernel-livepatch-4.14.232-176.381 | 1.0-0.amzn2 | ALAS2-2021-1636 |
| Amazon Linux 2 | perf +8 | 4.14.232-176.381.amzn2 | ALAS2-2021-1636 |
Advisories 12
- RHSA-2024:2585 Red Hat Security Advisory: kernel-rt security and bug fix update Red Hat Security Advisories (RHSA) · Oct 9, 2026
- RHSA-2024:2582 Red Hat Security Advisory: kernel security and bug fix update Red Hat Security Advisories (RHSA) · Oct 9, 2026
- RHSA-2024:2008 Red Hat Security Advisory: kernel-rt security update Red Hat Security Advisories (RHSA) · Oct 9, 2026
- RHSA-2024:2006 Red Hat Security Advisory: kernel security and bug fix update Red Hat Security Advisories (RHSA) · Oct 9, 2026
- SUSE-SU-2024:0926-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0975-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0976-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0925-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0857-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · May 2, 2025
- SUSE-SU-2024:0856-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · May 2, 2025
- WID-SEC-2024-0482 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Sep 5, 2024
- ALAS2-2021-1636 Moderate: kernel security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · May 23, 2024
References
- 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