netfilter: nf_tables: reject mismatching sum of field_len with set key length
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3ce67e3793f48c1b9635beb9bb71116ca1e51b58 · < ab50d0eff4a939d20c37721fd9766347efcdb6f6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_tables: reject mismatching sum of field_len with set key length
The field length description provides the length of each separated key field in the concatenation, each field gets rounded up to 32-bits to calculate the pipapo rule width from pipapo_init(). The set key length provides the total size of the key aligned to 32-bits.
Register-based arithmetics still allows for combining mismatching set key length and field length description, eg. set key length 10 and field description [ 5, 4 ] leading to pipapo width of 12.
From the CVE record · Linux
Linux kernel nf_tables can accept a field-length description whose rounded-up lengths do not match the set key length, producing an incorrect pipapo rule width. The input does not specify what an attacker could achieve, whether access is local or network-based, or whether authentication or user interaction is required.
Engineers running the Linux kernel should check their versions against the vendor advisory; affected versions are not specified in the input.