Skip to content
Heist/ feed
Back to feed
UnratedFix available

net: fix crash when config small gso_max_size/gso_ipv4_max_size

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: net: fix crash when config small gso_max_size/gso_ipv4_max_size Config a small gso_max_size/gso_ipv4_max_size will lead to an underflow in sk_dst_gso_max_size(), which may trigger a BUG_ON crash, because sk->sk_gso_max_size would be much bigger than device limits. Call Trace: tcp_write_xmit tso_segs = tcp_init_tso_segs(skb, mss_now); tcp_set_skb_tso_segs tcp_skb_pcount_set // skb->len = 524288, mss_now = 8 // u16 tso_segs = 524288/8 = 65535 -> 0 tso_segs = DIV_ROUND_UP(skb->len, mss_now) BUG_ON(!tso_segs) Add check for the minimum value of gso_max_size and gso_ipv4_max_size.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.181, 6.1.120, 6.11.7, 6.6.60
CVEs
CVE-2024-50258
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 18:16 UTC · Revision 1

Source evidence

net: fix crash when config small gso_max_size/gso_ipv4_max_size

core-osv · Original source

Published 9 Nov 2024, 10:15 UTC

In the Linux kernel, the following vulnerability has been resolved: net: fix crash when config small gso_max_size/gso_ipv4_max_size Config a small gso_max_size/gso_ipv4_max_size will lead to an underflow in sk_dst_gso_max_size(), which may trigger a BUG_ON crash, because sk->sk_gso_max_size would be much bigger than device limits. Call Trace: tcp_write_xmit tso_segs = tcp_init_tso_segs(skb, mss_now); tcp_set_skb_tso_segs tcp_skb_pcount_set // skb->len = 524288, mss_now = 8 // u16 tso_segs = 524288/8 = 65535 -> 0 tso_segs = DIV_ROUND_UP(skb->len, mss_now) BUG_ON(!tso_segs) Add check for the minimum value of gso_max_size and gso_ipv4_max_size.

osv:CVE-2024-50258

Kernel

Fixed versions: 5.15.181, 6.1.120, 6.6.60, 6.11.7

Complete source record
{
  "id": "bbd2493f8e4af488e2b3c3a66dd341778ed597a39ac71476d4718576d5e214bb",
  "url": "https://osv.dev/vulnerability/CVE-2024-50258",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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: net: fix crash when config small gso_max_size/gso_ipv4_max_size Config a small gso_max_size/gso_ipv4_max_size will lead to an underflow in sk_dst_gso_max_size(), which may trigger a BUG_ON crash, because sk->sk_gso_max_size would be much bigger than device limits. Call Trace: tcp_write_xmit tso_segs = tcp_init_tso_segs(skb, mss_now); tcp_set_skb_tso_segs tcp_skb_pcount_set // skb->len = 524288, mss_now = 8 // u16 tso_segs = 524288/8 = 65535 -> 0 tso_segs = DIV_ROUND_UP(skb->len, mss_now) BUG_ON(!tso_segs) Add check for the minimum value of gso_max_size and gso_ipv4_max_size.",
    "evidence": "osv:CVE-2024-50258",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.181",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.120",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.60",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-50258",
      "aliases": [
        "CVE-2024-50258"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "46e6b992c2502b094e61da6994f1363f3b7c1413"
                },
                {
                  "fixed": "90c8482a5d9791259ba77bfdc1849fc5128b4be7"
                },
                {
                  "fixed": "e9365368b483328639c03fc730448dccd5a25b6b"
                },
                {
                  "fixed": "ac5977001eee7660c643f8e07a2de9001990b7b8"
                },
                {
                  "fixed": "e72fd1389a5364bc6aa6312ecf30bdb5891b9486"
                },
                {
                  "fixed": "9ab5cf19fb0e4680f95e506d6c544259bf1111c4"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50258.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.16.0"
                },
                {
                  "fixed": "5.15.181"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.120"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.60"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.11.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50258.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.034612438Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/90c8482a5d9791259ba77bfdc1849fc5128b4be7",
        "https://git.kernel.org/stable/c/9ab5cf19fb0e4680f95e506d6c544259bf1111c4",
        "https://git.kernel.org/stable/c/ac5977001eee7660c643f8e07a2de9001990b7b8",
        "https://git.kernel.org/stable/c/e72fd1389a5364bc6aa6312ecf30bdb5891b9486",
        "https://git.kernel.org/stable/c/e9365368b483328639c03fc730448dccd5a25b6b",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50258.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-50258",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50258.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-50258",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 515863,
  "published_at": "2024-11-09T10:15:11.311+00:00"
}