net/sched: cls_u32: use skb_header_pointer_careful()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fbc2e7d9cf49e0bf89b9e91fd60a06851a855c5d · < 8a672f177ebe19c93d795fbe967846084fbc7943| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/sched: cls_u32: use skb_header_pointer_careful()
skb_header_pointer() does not fully validate negative @offset values.
Use skb_header_pointer_careful() instead.
GangMin Kim provided a report and a repro fooling u32_classify():
BUG: KASAN: slab-out-of-bounds in u32_classify+0x1180/0x11b0 net/sched/cls_u32.c:221
From the CVE record · Linux
The Linux kernel’s cls_u32 classifier can read out of bounds because skb_header_pointer() does not fully validate negative offsets. A reported reproducer triggers a KASAN slab-out-of-bounds error in u32_classify(); the input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels with the cls_u32 classifier should check their versions; affected versions are not specified.