CVE-2026-53366

ipv4: account for fraggap on the paged allocation path

State
Published
Severity
7.8 High
Published
Jul 16, 2026
Updated
Oct 19, 2026
Reserved
Jun 9, 2026

Read the record on cve.org

Description

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

alloclen = fragheaderlen + transhdrlen; pagedlen = datalen - transhdrlen;

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

  • CWE-131 Incorrect Calculation of Buffer Size

Affected Products

ProductVersions
LinuxLinux
  • 8eb77cc73977d88787b37c92831b1c242e035396 to before 5c6375bced6147ec2e460ee3b653f4860d5ecdc2Affected
  • 8eb77cc73977d88787b37c92831b1c242e035396 to before ce494707a9c07f27c219ca67f3e138061f53d9b3Affected
  • 8eb77cc73977d88787b37c92831b1c242e035396 to before a9c24eda24bd15f432e37824e6fc440977cb241cAffected
  • 8eb77cc73977d88787b37c92831b1c242e035396 to before 77798d7be6ef71e72fb6fc8a2901bf74ebc9706fAffected
  • 8eb77cc73977d88787b37c92831b1c242e035396 to before c04d9ece23deb9e26c19f9ca215e98b3295aa1bbAffected
  • 8eb77cc73977d88787b37c92831b1c242e035396 to before eca856950f7cb1a221e02b99d758409f2c5cec42Affected
LinuxLinux
  • 6.0Affected
  • before 6.0Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.144 through 6.6.*Not affected
  • 6.12.95 through 6.12.*Not affected
  • 6.18.38 through 6.18.*Not affected
  • 7.1.3 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.