{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-50258","id":"CVE-2024-50258","title":"net: fix crash when config small gso_max_size/gso_ipv4_max_size","description":"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, ","descriptionLong":"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.","published":"2024-11-09T10:15:11.311Z","updated":"2026-11-07T02:30:21.646473381Z","reserved":"2024-10-21T19:36:19.981Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"46e6b992c2502b094e61da6994f1363f3b7c1413","lessThan":"90c8482a5d9791259ba77bfdc1849fc5128b4be7","status":"affected","versionType":"git"},{"version":"46e6b992c2502b094e61da6994f1363f3b7c1413","lessThan":"e9365368b483328639c03fc730448dccd5a25b6b","status":"affected","versionType":"git"},{"version":"46e6b992c2502b094e61da6994f1363f3b7c1413","lessThan":"ac5977001eee7660c643f8e07a2de9001990b7b8","status":"affected","versionType":"git"},{"version":"46e6b992c2502b094e61da6994f1363f3b7c1413","lessThan":"e72fd1389a5364bc6aa6312ecf30bdb5891b9486","status":"affected","versionType":"git"},{"version":"46e6b992c2502b094e61da6994f1363f3b7c1413","lessThan":"9ab5cf19fb0e4680f95e506d6c544259bf1111c4","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.16","status":"affected"},{"version":"0","lessThan":"4.16","status":"unaffected","versionType":"semver"},{"version":"5.15.181","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.120","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.60","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.11.7","lessThanOrEqual":"6.11.*","status":"unaffected","versionType":"semver"},{"version":"6.12","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-191"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/90c8482a5d9791259ba77bfdc1849fc5128b4be7","tags":["web"]},{"url":"https://git.kernel.org/stable/c/e9365368b483328639c03fc730448dccd5a25b6b","tags":["web"]},{"url":"https://git.kernel.org/stable/c/ac5977001eee7660c643f8e07a2de9001990b7b8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e72fd1389a5364bc6aa6312ecf30bdb5891b9486","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9ab5cf19fb0e4680f95e506d6c544259bf1111c4","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50258.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50258","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0022,"epssPercentile":0.12722,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-50258","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50258","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-50258","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-50258","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}