xfrm: esp: restore combined single-frag length gate
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5bd8baab087dff657e05387aee802e70304cc813 · < c093468aea8277f77272a4f199b2e15e19cabb59| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
xfrm: esp: restore combined single-frag length gate
The ESP out-of-place fast path appends the trailer in esp_output_head() before esp_output_tail() allocates the destination page frag. The head-side gate currently checks skb->data_len and tailen separately, but the tail code allocates a single destination frag from the combined post-trailer skb->data_len.
Reject the page-frag fast path when the combined aligned length exceeds a page. Otherwise skb_page_frag_refill() may fall back to a single page while the destination sg still spans the combined skb->data_len.
Restore this combined-length page gate for both IPv4 and IPv6.
From the CVE record · Linux
The Linux kernel’s IPv4 and IPv6 ESP out-of-place fast path can allocate a destination page fragment smaller than the length its scatter-gather entry spans. This can cause an out-of-bounds read when the combined aligned length exceeds a page. The input does not establish whether exploitation requires network or local access, authentication, or user interaction.
Anyone running a Linux kernel should check whether their version includes the ESP combined-length page gate fix; affected versions were not specified.