netfilter: xt_connmark: reject invalid shift parameters
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 472a73e00757b971d613d796374d2727b2e4954d · < 230173cc6105bdfb2696d37e6e56687b003fbe63| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: xt_connmark: reject invalid shift parameters
Revision 2 of the CONNMARK target accepts user-controlled shift parameters and applies them to 32-bit mark values in connmark_tg_shift().
A shift_bits value of 32 or more triggers an undefined-shift bug when the rule is evaluated. Invalid shift_dir values are also accepted and silently fall back to the left-shift path.
Reject invalid revision-2 shift parameters in connmark_tg_check() so malformed rules fail at installation time, before they can reach the packet path.
From the CVE record · Linux
The Linux kernel’s revision-2 CONNMARK target accepts invalid, user-controlled shift parameters. A shift value of 32 or more causes an undefined shift when a malformed rule is evaluated; the input does not specify the access required to install such a rule.
Engineers running the Linux kernel with netfilter CONNMARK rules should check their kernel version; affected versions are not specified.