Linux
netfilter: xt_u32: reject invalid shift counts
In the Linux kernel, the following vulnerability has been resolved: netfilter: xt_u32: reject invalid shift counts u32_match_it() executes rule-supplied shift operands on a 32-bit value. A malformed u32 rule can provide a shift count of 32 or more, triggering an undefined shift out-of-bounds during packet evaluation. Validate XT_U32_LEFTSH and XT_U32_RIGHTSH operands in u32_mt_checkentry() and reject malformed rules before they reach the packet path.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1b50b8a371e90a5e110f466e4ac02cf6b5f681de, < ca7c92d9701249e6daf132087756a88cbf2bb2a3
- >= 1b50b8a371e90a5e110f466e4ac02cf6b5f681de, < b33b44250d57ab0e5a1e2571b5285fb0d0a7f382
- >= 1b50b8a371e90a5e110f466e4ac02cf6b5f681de, < 728f479dc0447ae7eaef87926ff49142e415a811
- >= 1b50b8a371e90a5e110f466e4ac02cf6b5f681de, < 0a8b7a6d763775709c601f584e709ae48bcc000a
- >= 1b50b8a371e90a5e110f466e4ac02cf6b5f681de, < cce42014415cecd98aa49b3950e7b02ee7c81268
- >= 1b50b8a371e90a5e110f466e4ac02cf6b5f681de, < a597a722fb71a534138c20359b655726622b5f17
- >= 1b50b8a371e90a5e110f466e4ac02cf6b5f681de, < 00d034fe8230dfc5832fe011ff2d81c1a2cc7a29
- >= 1b50b8a371e90a5e110f466e4ac02cf6b5f681de, < 64cdf7d30ac18e43df6c48004435febb965809a8
Fixed in ca7c92d9701249e6daf132087756a88cbf2bb2a3, b33b44250d57ab0e5a1e2571b5285fb0d0a7f382, 728f479dc0447ae7eaef87926ff49142e415a811, 0a8b7a6d763775709c601f584e709ae48bcc000a, cce42014415cecd98aa49b3950e7b02ee7c81268, a597a722fb71a534138c20359b655726622b5f17, 00d034fe8230dfc5832fe011ff2d81c1a2cc7a29, 64cdf7d30ac18e43df6c48004435febb965809a8
- 2.6.23
Fixed in 0, 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to ca7c92d9701249e6daf132087756a88cbf2bb2a3 or b33b44250d57ab0e5a1e2571b5285fb0d0a7f382 or 728f479dc0447ae7eaef87926ff49142e415a811 or 0a8b7a6d763775709c601f584e709ae48bcc000a or cce42014415cecd98aa49b3950e7b02ee7c81268 or a597a722fb71a534138c20359b655726622b5f17 or 00d034fe8230dfc5832fe011ff2d81c1a2cc7a29 or 64cdf7d30ac18e43df6c48004435febb965809a8 or later.
Upgrade Linux to 0 or 5.10.261 or 5.15.212 or 6.1.178 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.