{"id":"CVE-2024-50258","aliases":["CVE-2024-50258"],"related":[],"kind":"vulnerability","state":"published","title":"net: fix crash when config small gso_max_size/gso_ipv4_max_size","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: fix crash when config small gso_max_size/gso_ipv4_max_size\n\nConfig a small gso_max_size/gso_ipv4_max_size will lead to an underflow\nin sk_dst_gso_max_size(), which may trigger a BUG_ON crash,\nbecause sk->sk_gso_max_size would be much bigger than device limits.\nCall Trace:\ntcp_write_xmit\n    tso_segs = tcp_init_tso_segs(skb, mss_now);\n        tcp_set_skb_tso_segs\n            tcp_skb_pcount_set\n                // skb->len = 524288, mss_now = 8\n                // u16 tso_segs = 524288/8 = 65535 -> 0\n                tso_segs = DIV_ROUND_UP(skb->len, mss_now)\n    BUG_ON(!tso_segs)\nAdd check for the minimum value of gso_max_size and gso_ipv4_max_size.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: fix crash when config small gso_max_size/gso_ipv4_max_size\n\nConfig a small gso_max_size/gso_ipv4_max_size will lead to an underflow\nin sk_dst_gso_max_size(), which may trigger a BUG_ON crash,\nbecause sk->sk_gso_max_size would be much bigger than device limits.\nCall Trace:\ntcp_write_xmit\n    tso_segs = tcp_init_tso_segs(skb, mss_now);\n        tcp_set_skb_tso_segs\n            tcp_skb_pcount_set\n                // skb->len = 524288, mss_now = 8\n                // u16 tso_segs = 524288/8 = 65535 -> 0\n                tso_segs = DIV_ROUND_UP(skb->len, mss_now)\n    BUG_ON(!tso_segs)\nAdd check for the minimum value of gso_max_size and gso_ipv4_max_size.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: se corrige el fallo al configurar un gso_max_size/gso_ipv4_max_size pequeño. Configurar un gso_max_size/gso_ipv4_max_size pequeño provocará un desbordamiento en sk_dst_gso_max_size(), lo que puede desencadenar un fallo BUG_ON, porque sk-&gt;sk_gso_max_size sería mucho mayor que los límites del dispositivo. Seguimiento de llamadas: tcp_write_xmit tso_segs = tcp_init_tso_segs(skb, mss_now); tcp_set_skb_tso_segs tcp_skb_pcount_set // skb-&gt;len = 524288, mss_now = 8 // u16 tso_segs = 524288/8 = 65535 -&gt; 0 tso_segs = DIV_ROUND_UP(skb-&gt;len, mss_now) BUG_ON(!tso_segs) Agregar verificación para el valor mínimo de gso_max_size y gso_ipv4_max_size.","source":"nvd"}],"published":"2024-11-09T10:15:11.311Z","modified":"2026-11-05T21:17:33.737Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-191"],"affected":[{"ranges":[{"type":"git","introduced":"46e6b992c2502b094e61da6994f1363f3b7c1413","fixed":"90c8482a5d9791259ba77bfdc1849fc5128b4be7","status":"affected"},{"type":"git","introduced":"46e6b992c2502b094e61da6994f1363f3b7c1413","fixed":"e9365368b483328639c03fc730448dccd5a25b6b","status":"affected"},{"type":"git","introduced":"46e6b992c2502b094e61da6994f1363f3b7c1413","fixed":"ac5977001eee7660c643f8e07a2de9001990b7b8","status":"affected"},{"type":"git","introduced":"46e6b992c2502b094e61da6994f1363f3b7c1413","fixed":"e72fd1389a5364bc6aa6312ecf30bdb5891b9486","status":"affected"},{"type":"git","introduced":"46e6b992c2502b094e61da6994f1363f3b7c1413","fixed":"9ab5cf19fb0e4680f95e506d6c544259bf1111c4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.16","status":"unaffected"},{"type":"semver","introduced":"5.15.181","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.120","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.60","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.7","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.16","lastAffected":"6.6.60"},{"status":"affected","introduced":"6.7","lastAffected":"6.11.7"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/90c8482a5d9791259ba77bfdc1849fc5128b4be7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e9365368b483328639c03fc730448dccd5a25b6b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac5977001eee7660c643f8e07a2de9001990b7b8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e72fd1389a5364bc6aa6312ecf30bdb5891b9486","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9ab5cf19fb0e4680f95e506d6c544259bf1111c4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:27:58.864Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50258","url":"https://www.cve.org/CVERecord?id=CVE-2024-50258","licence":"CVE Terms of Use","modified":"2026-11-05T20:31:22.459Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50258","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50258","licence":"Public domain","modified":"2026-11-05T21:17:33.737Z"}],"updatedAt":"2026-11-25T22:58:47.983Z","epss":{"score":0.00221,"percentile":0.1351,"date":"2026-12-01T12:00:22.000Z"}}