netfilter: reject zero shift in nft_bitwise
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.258, 5.15.209, 6.1.175, 6.6.140, 6.12.86, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: netfilter: reject zero shift in nft_bitwise Reject zero shift operands for nft_bitwise left and right shift expressions during initialization. The carry propagation logic computes the carry from the adjacent 32-bit word using BITS_PER_TYPE(u32) - shift. A zero shift operand turns this into a 32-bit shift, which is undefined behaviour. Reject zero shift operands in the control plane, alongside the existing check for values greater than or equal to 32, so malformed rules never reach the packet path.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 567d746b55bc66d3800c9ae91d50f0c5deb2fd93 · fixed in 9baa08d6b6b096fad70049533f0d705d85fdc979; From 567d746b55bc66d3800c9ae91d50f0c5deb2fd93 · fixed in 4fccea585631621c975883911a08d15b6671f7dc; From 567d746b55bc66d3800c9ae91d50f0c5deb2fd93 · fixed in 9ad26c272405f53834871cc2e46b9b5393a666c3; From 567d746b55bc66d3800c9ae91d50f0c5deb2fd93 · fixed in bffef0acec9c3b837a785248a893137fb7f26c95; From 567d746b55bc66d3800c9ae91d50f0c5deb2fd93 · fixed in ca24f1243ad1a4d12d6a23876bbbe3ed02099853; From 567d746b55bc66d3800c9ae91d50f0c5deb2fd93 · fixed in 6f820139d16a4c9865a145d4a9cf9c92cc632c14; From 567d746b55bc66d3800c9ae91d50f0c5deb2fd93 · fixed in f370205974f171a5868c13ff30d7642fed46e47b; From 567d746b55bc66d3800c9ae91d50f0c5deb2fd93 · fixed in fe11e5c40817b84abaa5d83bfb6586d8412bfd07
- Linux Linux
5.6
- KernelLinux
From 5.6.0 · fixed in 5.10.258; From 5.11.0 · fixed in 5.15.209; From 5.16.0 · fixed in 6.1.175; From 6.2.0 · fixed in 6.6.140; From 6.7.0 · fixed in 6.12.86; From 6.13.0 · fixed in 6.18.27; From 6.19.0 · fixed in 7.0.4
References 8
git.kernel.org
- stable/c/9baa08d6b6b096fad70049533f0d705d85fdc979
- stable/c/4fccea585631621c975883911a08d15b6671f7dc
- stable/c/9ad26c272405f53834871cc2e46b9b5393a666c3
- stable/c/bffef0acec9c3b837a785248a893137fb7f26c95
- stable/c/ca24f1243ad1a4d12d6a23876bbbe3ed02099853
- stable/c/6f820139d16a4c9865a145d4a9cf9c92cc632c14
- stable/c/f370205974f171a5868c13ff30d7642fed46e47b
- stable/c/fe11e5c40817b84abaa5d83bfb6586d8412bfd07