net/sched: cls_flow: Dont expose folded kernel pointers
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e5dfb815181fcb186d6080ac3a091eadff2d98fe · < f294fc71c4a0fa4964f6428a1b4e7929c1d83125| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/sched: cls_flow: Dont expose folded kernel pointers
The flow classifier falls back to addr_fold() for fields that are missing from packet headers. In map mode, userspace controls mask, xor, rshift, addend and divisor, and can observe the resulting classid through class statistics. This allows a tc classifier in a user/network namespace to recover the 32-bit folded value of skb->sk, skb_dst() or skb_nfct().
Align with standard kernel practices for pointer hashing and replace the XOR folding with a keyed siphash (which is cryptographically secure)
From the CVE record · Linux
The Linux kernel flow classifier can expose folded kernel pointer values when packet-header fields are missing. An attacker who can configure a tc classifier in a user or network namespace can use map-mode settings and class statistics to recover a 32-bit folded value of certain kernel pointers.
Engineers running Linux kernels with the flow classifier should check their vendor’s advisory for affected versions.