CVE-2024-49948

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-49948
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-49948.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-49948
Downstream
Related
Published
2024-10-21T18:15:16Z
Modified
2025-08-09T20:01:27Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

net: add more sanity checks to qdiscpktlen_init()

One path takes care of SKBGSODODGY, assuming skb->len is bigger than hdr_len.

virtionethdrtoskb() does not fully dissect TCP headers, it only make sure it is at least 20 bytes.

It is possible for an user to provide a malicious 'GSO' packet, total length of 80 bytes.

  • 20 bytes of IPv4 header
  • 60 bytes TCP header
  • a small gso_size like 8

virtionethdrtoskb() would declare this packet as a normal GSO packet, because it would see 40 bytes of payload, bigger than gso_size.

We need to make detect this case to not underflow qdiscskbcb(skb)->pkt_len.

References

Affected packages