netfilter: x_tables: guard option walkers against 1-byte tail reads
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2e4e6a17af35be359cc8f1c924f8f198fbd478cc · < bc18551c6169eac5ed813778d3e3e484002dbbe5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: x_tables: guard option walkers against 1-byte tail reads
When the last byte of options is a non-single-byte option kind, walkers that advance with i += op[i + 1] ? : 1 can read op[i + 1] past the end of the option area.
Add an explicit i == optlen - 1 check before dereferencing op[i + 1] in xt_tcpudp and xt_dccp option walkers.
From the CVE record · Linux
The Linux kernel’s xt_tcpudp and xt_dccp option walkers can read one byte past the option area when its last byte is a non-single-byte option kind. The input does not specify how an attacker could trigger this condition, or whether access or user interaction is required.
Engineers running Linux kernels with the affected netfilter option walkers should check their versions; affected versions were not provided.