CVE-2026-53366 PUBLISHED

ipv4: account for fraggap on the paged allocation path

Assigner: Linux
Reserved: 09.06.2026 Published: 16.07.2026 Updated: 16.07.2026

In the Linux kernel, the following vulnerability has been resolved:

ipv4: account for fraggap on the paged allocation path

In __ip_append_data(), when the paged-allocation branch is taken, alloclen and pagedlen are computed as

<pre>alloclen = fragheaderlen + transhdrlen; pagedlen = datalen - transhdrlen; </pre>

datalen already includes fraggap, but the fraggap bytes carried over from the previous skb are copied into the new skb's linear area at offset transhdrlen by the subsequent skb_copy_and_csum_bits(). The linear area is therefore undersized by fraggap bytes while pagedlen is overstated by the same amount.

The non-paged branch sets alloclen to fraglen, which already accounts for fraggap because datalen does. Bring the paged branch in line by adding fraggap to alloclen and subtracting it from pagedlen.

After this adjustment, copy no longer collapses to -fraggap on the paged path, so remove the stale comment describing that old arithmetic.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 8eb77cc73977d88787b37c92831b1c242e035396 to ce494707a9c07f27c219ca67f3e138061f53d9b3 (excl.)
  • affected from 8eb77cc73977d88787b37c92831b1c242e035396 to a9c24eda24bd15f432e37824e6fc440977cb241c (excl.)
  • affected from 8eb77cc73977d88787b37c92831b1c242e035396 to 77798d7be6ef71e72fb6fc8a2901bf74ebc9706f (excl.)
  • affected from 8eb77cc73977d88787b37c92831b1c242e035396 to c04d9ece23deb9e26c19f9ca215e98b3295aa1bb (excl.)
  • affected from 8eb77cc73977d88787b37c92831b1c242e035396 to eca856950f7cb1a221e02b99d758409f2c5cec42 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.0 is affected
  • unaffected from 0 to 6.0 (excl.)
  • unaffected from 6.6.144 to 6.6.* (incl.)
  • unaffected from 6.12.95 to 6.12.* (incl.)
  • unaffected from 6.18.38 to 6.18.* (incl.)
  • unaffected from 7.1.3 to 7.1.* (incl.)
  • unaffected from 7.2-rc1 to * (incl.)

References