netfilter: xt_u32: reject invalid shift counts
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1b50b8a371e90a5e110f466e4ac02cf6b5f681de · < a597a722fb71a534138c20359b655726622b5f17| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's netfilter xt_u32 module does not reject u32 rules with shift counts of 32 or more. A malformed rule can trigger an undefined out-of-bounds shift during packet evaluation. The input does not specify how an attacker could submit such a rule or whether authentication or user interaction is required.
Engineers running Linux kernels with netfilter xt_u32 should check their versions; affected versions are not specified.