# CVE-2024-49948: net: add more sanity checks to qdisc_pkt_len_init()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2024-10-21T18:02:05.121Z
- Modified: 2026-10-15T01:19:01.690Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

net: add more sanity checks to qdisc_pkt_len_init()

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

virtio_net_hdr_to_skb() 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

virtio_net_hdr_to_skb() 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
qdisc_skb_cb(skb)->pkt_len.

(As written by CVE List.)

## Affected

- Linux Linux: from 1def9238d4aa2146924994aa4b7dc861f03b9362 before d7d1a28f5dd57b4d83def876f8d7b4403bd37df9; from 1def9238d4aa2146924994aa4b7dc861f03b9362 before 473426a1d53a68dd1e718e6cd00d57936993fa6c; from 1def9238d4aa2146924994aa4b7dc861f03b9362 before 566a931a1436d0e0ad13708ea55479b95426213c; from 1def9238d4aa2146924994aa4b7dc861f03b9362 before 2415f465730e48b6e38da1c7c097317bf5dd2d20; from 1def9238d4aa2146924994aa4b7dc861f03b9362 before 27a8fabc54d2f960d47bdfbebf2bdc6e8a92a4c4; from 1def9238d4aa2146924994aa4b7dc861f03b9362 before 9b0ee571d20a238a22722126abdfde61f1b2bdd0; from 1def9238d4aa2146924994aa4b7dc861f03b9362 before ff1c3cadcf405ab37dd91418a62a7acecf3bc5e2; from 1def9238d4aa2146924994aa4b7dc861f03b9362 before 1eebe602a8d8264a12e35e39d0645fa88dbbacdd; from 1def9238d4aa2146924994aa4b7dc861f03b9362 before ab9a9a9e9647392a19e7a885b08000e89c86b535; 3.9 (not affected: before 3.9; from 4.19.323 up to 4.19.*; from 5.4.285 up to 5.4.*; from 5.10.227 up to 5.10.*; from 5.15.168 up to 5.15.*; from 6.1.113 up to 6.1.*; from 6.6.55 up to 6.6.*; from 6.10.14 up to 6.10.*; from 6.11.3 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 3.9 before 4.19.323; from 4.20 before 5.4.285; from 5.5 before 5.10.227; from 5.11 before 5.15.168; from 5.16 before 6.1.113; from 6.2 before 6.6.55; from 6.7 before 6.10.14; from 6.11 before 6.11.3; 6.12

## References

- <https://git.kernel.org/stable/c/d7d1a28f5dd57b4d83def876f8d7b4403bd37df9> (patch)
- <https://git.kernel.org/stable/c/473426a1d53a68dd1e718e6cd00d57936993fa6c> (patch)
- <https://git.kernel.org/stable/c/566a931a1436d0e0ad13708ea55479b95426213c> (patch)
- <https://git.kernel.org/stable/c/2415f465730e48b6e38da1c7c097317bf5dd2d20> (patch)
- <https://git.kernel.org/stable/c/27a8fabc54d2f960d47bdfbebf2bdc6e8a92a4c4> (patch)
- <https://git.kernel.org/stable/c/9b0ee571d20a238a22722126abdfde61f1b2bdd0> (patch)
- <https://git.kernel.org/stable/c/ff1c3cadcf405ab37dd91418a62a7acecf3bc5e2> (patch)
- <https://git.kernel.org/stable/c/1eebe602a8d8264a12e35e39d0645fa88dbbacdd> (patch)
- <https://git.kernel.org/stable/c/ab9a9a9e9647392a19e7a885b08000e89c86b535> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Sources

- CVE List: [CVE-2024-49948](https://www.cve.org/CVERecord?id=CVE-2024-49948), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-49948](https://nvd.nist.gov/vuln/detail/CVE-2024-49948), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-49948 · Whole record: https://cve.day/CVE-2024-49948.json · Rebuilt by cve.day 2026-11-25T22:58:47.059Z
