Skip to content
Heist/ feed
Back to feed
HighFix available

net: remove CAP_SYS_RAWIO zero-padding in dev_validate_header

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: net: remove CAP_SYS_RAWIO zero-padding in dev_validate_header dev_validate_header() reads dev->hard_header_len directly when zero-padding short link layer headers for CAP_SYS_RAWIO holders: if (capable(CAP_SYS_RAWIO)) { memset(ll_header + len, 0, dev->hard_header_len - len); return true; } Packet send paths call dev_validate_header() on skbs whose headroom was allocated from an earlier hard_header_len read. If the device is reconfigured so that dev->hard_header_len increases before validation, the memset writes past the reserved buffer, an out-of-bounds write. This out-of-bounds write is masked in some SOCK_RAW paths today because the same concurrent increase can first make skb_push() exceed the reserved headroom and trigger skb_under_panic(). Remove the zero-padding branch before making those hard_header_len reads consistent, so the snapshot fixes do not turn a loud panic into a silent overwrite. This path is only reached for variable length L2 protocols, where len < hard_header_len but len >= min_header_len. No remaining in-tree variable length L2 protocol implements header_ops->validate, and the CAP_SYS_RAWIO bypass that zero-pads and accepts short headers has no real value beyond allowing testing of intentionally malformed input. Drop the CAP_SYS_RAWIO branch. The remaining reads of dev->hard_header_len in dev_validate_header() are comparisons only and have no memory safety impact.

Products
Kernel
Affected versions
Not specified
Fixed versions
3.2.81, 5.10.265, 5.15.216, 6.1.183, 6.12.104, 6.18.45, 6.6.152, 7.1.9
CVEs
CVE-2026-80731
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 04:05 UTC · Revision 1

Source evidence

net: remove CAP_SYS_RAWIO zero-padding in dev_validate_header

core-osv · Original source

Published 3 Sept 2026, 08:21 UTC

In the Linux kernel, the following vulnerability has been resolved: net: remove CAP_SYS_RAWIO zero-padding in dev_validate_header dev_validate_header() reads dev->hard_header_len directly when zero-padding short link layer headers for CAP_SYS_RAWIO holders: if (capable(CAP_SYS_RAWIO)) { memset(ll_header + len, 0, dev->hard_header_len - len); return true; } Packet send paths call dev_validate_header() on skbs whose headroom was allocated from an earlier hard_header_len read. If the device is reconfigured so that dev->hard_header_len increases before validation, the memset writes past the reserved buffer, an out-of-bounds write. This out-of-bounds write is masked in some SOCK_RAW paths today because the same concurrent increase can first make skb_push() exceed the reserved headroom and trigger skb_under_panic(). Remove the zero-padding branch before making those hard_header_len reads consistent, so the snapshot fixes do not turn a loud panic into a silent overwrite. This path is only reached for variable length L2 protocols, where len < hard_header_len but len >= min_header_len. No remaining in-tree variable length L2 protocol implements header_ops->validate, and the CAP_SYS_RAWIO bypass that zero-pads and accepts short headers has no real value beyond allowing testing of intentionally malformed input. Drop the CAP_SYS_RAWIO branch. The remaining reads of dev->hard_header_len in dev_validate_header() are comparisons only and have no memory safety impact.

osv:CVE-2026-80731

Kernel

Fixed versions: 3.2.81, 5.10.265, 5.15.216, 6.1.183, 6.6.152, 6.12.104, 6.18.45, 7.1.9

Complete source record
{
  "id": "ac88d22fc0e2a980f8b36d1a5963da27723597144c572f96f63947a51c38306c",
  "url": "https://osv.dev/vulnerability/CVE-2026-80731",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "net: remove CAP_SYS_RAWIO zero-padding in dev_validate_header",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: net: remove CAP_SYS_RAWIO zero-padding in dev_validate_header dev_validate_header() reads dev->hard_header_len directly when zero-padding short link layer headers for CAP_SYS_RAWIO holders: if (capable(CAP_SYS_RAWIO)) { memset(ll_header + len, 0, dev->hard_header_len - len); return true; } Packet send paths call dev_validate_header() on skbs whose headroom was allocated from an earlier hard_header_len read. If the device is reconfigured so that dev->hard_header_len increases before validation, the memset writes past the reserved buffer, an out-of-bounds write. This out-of-bounds write is masked in some SOCK_RAW paths today because the same concurrent increase can first make skb_push() exceed the reserved headroom and trigger skb_under_panic(). Remove the zero-padding branch before making those hard_header_len reads consistent, so the snapshot fixes do not turn a loud panic into a silent overwrite. This path is only reached for variable length L2 protocols, where len < hard_header_len but len >= min_header_len. No remaining in-tree variable length L2 protocol implements header_ops->validate, and the CAP_SYS_RAWIO bypass that zero-pads and accepts short headers has no real value beyond allowing testing of intentionally malformed input. Drop the CAP_SYS_RAWIO branch. The remaining reads of dev->hard_header_len in dev_validate_header() are comparisons only and have no memory safety impact.",
    "evidence": "osv:CVE-2026-80731",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.2.81",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.265",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.216",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.183",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.152",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.104",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.45",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.1.9",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-80731",
      "aliases": [
        "CVE-2026-80731"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b5518429e70cd783b8ca52335456172c1a0589f6"
                },
                {
                  "fixed": "53fd7f912c0877647d6a1e1877f5ea8535ee0b4a"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2793a23aacbd754dbbb5cb75093deb7e4103bace"
                },
                {
                  "fixed": "fa6d98dd925e72fc028b26a0cbbff9d2f0601ff6"
                },
                {
                  "fixed": "8fc9816404166a90ed8d544dc52482fafffb6d9f"
                },
                {
                  "fixed": "b0f92a5731dc82556a9ae005cc35f71ab136307b"
                },
                {
                  "fixed": "99df6b7a713f96eda206680d100b76e15f9d9b69"
                },
                {
                  "fixed": "74e035f07f53feca09e2352e77fccb09cad5e208"
                },
                {
                  "fixed": "dbb30dc943a93e083f1e531bfdc6779e57de40d0"
                },
                {
                  "fixed": "fc902f52a02298c7432b2334c0c82a2885a1a8b6"
                },
                {
                  "fixed": "3b9a324e646d3657a8d9806dfbfe4f3e4066e882"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3.2.80"
                },
                {
                  "fixed": "3.2.81"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3.16.36"
                },
                {
                  "fixed": "3.17"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4.1.28"
                },
                {
                  "fixed": "4.2"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4.4.8"
                },
                {
                  "fixed": "4.5"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4.5.2"
                },
                {
                  "fixed": "4.6"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f58a6c08ebdfa978178bbca78c2ba744a2665912"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "1df16498dfd0d5a129bdf2982d9a08df73e8923d"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8b8d278aa4de9335682bbd4a3bb619af015c859e"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6804052fa9d86e9a512c88b24a5debbfc1a490fc"
                }
              ]
            }
          ],
          "versions": [
            "v3.2.80",
            "v3.16.85",
            "v3.16.84",
            "v3.16.83",
            "v3.16.82",
            "v3.16.81",
            "v3.16.80",
            "v3.16.79",
            "v3.16.78",
            "v3.16.77",
            "v3.16.76",
            "v3.16.75",
            "v3.16.74",
            "v3.16.73",
            "v3.16.72",
            "v3.16.71",
            "v3.16.70",
            "v3.16.69",
            "v3.16.68",
            "v3.16.67",
            "v3.16.66",
            "v3.16.65",
            "v3.16.64",
            "v3.16.63",
            "v3.16.62",
            "v3.16.61",
            "v3.16.60",
            "v3.16.59",
            "v3.16.58",
            "v3.16.57",
            "v3.16.56",
            "v3.16.55",
            "v3.16.54",
            "v3.16.53",
            "v3.16.52",
            "v3.16.51",
            "v3.16.50",
            "v3.16.49",
            "v3.16.48",
            "v3.16.47",
            "v3.16.46",
            "v3.16.45",
            "v3.16.44",
            "v3.16.43",
            "v3.16.42",
            "v3.16.41",
            "v3.16.40",
            "v3.16.39",
            "v3.16.38",
            "v3.16.37",
            "v3.16.36",
            "v4.1.52",
            "v4.1.51",
            "v4.1.50",
            "v4.1.49",
            "v4.1.48",
            "v4.1.47",
            "v4.1.46",
            "v4.1.45",
            "v4.1.44",
            "v4.1.43",
            "v4.1.42",
            "v4.1.41",
            "v4.1.40",
            "v4.1.39",
            "v4.1.38",
            "v4.1.37",
            "v4.1.36",
            "v4.1.35",
            "v4.1.34",
            "v4.1.33",
            "v4.1.32",
            "v4.1.31",
            "v4.1.30",
            "v4.1.29",
            "v4.1.28",
            "v4.4.302",
            "v4.4.301",
            "v4.4.300",
            "v4.4.299",
            "v4.4.298",
            "v4.4.297",
            "v4.4.296",
            "v4.4.295",
            "v4.4.294",
            "v4.4.293",
            "v4.4.292",
            "v4.4.291",
            "v4.4.290",
            "v4.4.289",
            "v4.4.288",
            "v4.4.287",
            "v4.4.286",
            "v4.4.285",
            "v4.4.284",
            "v4.4.283",
            "v4.4.282",
            "v4.4.281",
            "v4.4.280",
            "v4.4.279",
            "v4.4.278",
            "v4.4.277",
            "v4.4.276",
            "v4.4.275",
            "v4.4.274",
            "v4.4.273",
            "v4.4.272",
            "v4.4.271",
            "v4.4.270",
            "v4.4.269",
            "v4.4.268",
            "v4.4.267",
            "v4.4.266",
            "v4.4.265",
            "v4.4.264",
            "v4.4.263",
            "v4.4.262",
            "v4.4.261",
            "v4.4.260",
            "v4.4.259",
            "v4.4.258",
            "v4.4.257",
            "v4.4.256",
            "v4.4.255",
            "v4.4.254",
            "v4.4.253",
            "v4.4.252",
            "v4.4.251",
            "v4.4.250",
            "v4.4.249",
            "v4.4.248",
            "v4.4.247",
            "v4.4.246",
            "v4.4.245",
            "v4.4.244",
            "v4.4.243",
            "v4.4.242",
            "v4.4.241",
            "v4.4.240",
            "v4.4.239",
            "v4.4.238",
            "v4.4.237",
            "v4.4.236",
            "v4.4.235",
            "v4.4.234",
            "v4.4.233",
            "v4.4.232",
            "v4.4.231",
            "v4.4.230",
            "v4.4.229",
            "v4.4.228",
            "v4.4.227",
            "v4.4.226",
            "v4.4.225",
            "v4.4.224",
            "v4.4.223",
            "v4.4.222",
            "v4.4.221",
            "v4.4.220",
            "v4.4.219",
            "v4.4.218",
            "v4.4.217",
            "v4.4.216",
            "v4.4.215",
            "v4.4.214",
            "v4.4.213",
            "v4.4.212",
            "v4.4.211",
            "v4.4.210",
            "v4.4.209",
            "v4.4.208",
            "v4.4.207",
            "v4.4.206",
            "v4.4.205",
            "v4.4.204",
            "v4.4.203",
            "v4.4.202",
            "v4.4.201",
            "v4.4.200",
            "v4.4.199",
            "v4.4.198",
            "v4.4.197",
            "v4.4.196",
            "v4.4.195",
            "v4.4.194",
            "v4.4.193",
            "v4.4.192",
            "v4.4.191",
            "v4.4.190",
            "v4.4.189",
            "v4.4.188",
            "v4.4.187",
            "v4.4.186",
            "v4.4.185",
            "v4.4.184",
            "v4.4.183",
            "v4.4.182",
            "v4.4.181",
            "v4.4.180",
            "v4.4.179",
            "v4.4.178",
            "v4.4.177",
            "v4.4.176",
            "v4.4.175",
            "v4.4.174",
            "v4.4.173",
            "v4.4.172",
            "v4.4.171",
            "v4.4.170",
            "v4.4.169",
            "v4.4.168",
            "v4.4.167",
            "v4.4.166",
            "v4.4.165",
            "v4.4.164",
            "v4.4.163",
            "v4.4.162",
            "v4.4.161",
            "v4.4.160",
            "v4.4.159",
            "v4.4.158",
            "v4.4.157",
            "v4.4.156",
            "v4.4.155",
            "v4.4.154",
            "v4.4.153",
            "v4.4.152",
            "v4.4.151",
            "v4.4.150",
            "v4.4.149",
            "v4.4.148",
            "v4.4.147",
            "v4.4.146",
            "v4.4.145",
            "v4.4.144",
            "v4.4.143",
            "v4.4.142",
            "v4.4.141",
            "v4.4.140",
            "v4.4.139",
            "v4.4.138",
            "v4.4.137",
            "v4.4.136",
            "v4.4.135",
            "v4.4.134",
            "v4.4.133",
            "v4.4.132",
            "v4.4.131",
            "v4.4.130",
            "v4.4.129",
            "v4.4.128",
            "v4.4.127",
            "v4.4.126",
            "v4.4.125",
            "v4.4.124",
            "v4.4.123",
            "v4.4.122",
            "v4.4.121",
            "v4.4.120",
            "v4.4.119",
            "v4.4.118",
            "v4.4.117",
            "v4.4.116",
            "v4.4.115",
            "v4.4.114",
            "v4.4.113",
            "v4.4.112",
            "v4.4.111",
            "v4.4.110",
            "v4.4.109",
            "v4.4.108",
            "v4.4.107",
            "v4.4.106",
            "v4.4.105",
            "v4.4.104",
            "v4.4.103",
            "v4.4.102",
            "v4.4.101",
            "v4.4.100",
            "v4.4.99",
            "v4.4.98",
            "v4.4.97",
            "v4.4.96",
            "v4.4.95",
            "v4.4.94",
            "v4.4.93",
            "v4.4.92",
            "v4.4.91",
            "v4.4.90",
            "v4.4.89",
            "v4.4.88",
            "v4.4.87",
            "v4.4.86",
            "v4.4.85",
            "v4.4.84",
            "v4.4.83",
            "v4.4.82",
            "v4.4.81",
            "v4.4.80",
            "v4.4.79",
            "v4.4.78",
            "v4.4.77",
            "v4.4.76",
            "v4.4.75",
            "v4.4.74",
            "v4.4.73",
            "v4.4.72",
            "v4.4.71",
            "v4.4.70",
            "v4.4.69",
            "v4.4.68",
            "v4.4.67",
            "v4.4.66",
            "v4.4.65",
            "v4.4.64",
            "v4.4.63",
            "v4.4.62",
            "v4.4.61",
            "v4.4.60",
            "v4.4.59",
            "v4.4.58",
            "v4.4.57",
            "v4.4.56",
            "v4.4.55",
            "v4.4.54",
            "v4.4.53",
            "v4.4.52",
            "v4.4.51",
            "v4.4.50",
            "v4.4.49",
            "v4.4.48",
            "v4.4.47",
            "v4.4.46",
            "v4.4.45",
            "v4.4.44",
            "v4.4.43",
            "v4.4.42",
            "v4.4.41",
            "v4.4.40",
            "v4.4.39",
            "v4.4.38",
            "v4.4.37",
            "v4.4.36",
            "v4.4.35",
            "v4.4.34",
            "v4.4.33",
            "v4.4.32",
            "v4.4.31",
            "v4.4.30",
            "v4.4.29",
            "v4.4.28",
            "v4.4.27",
            "v4.4.26",
            "v4.4.25",
            "v4.4.24",
            "v4.4.23",
            "v4.4.22",
            "v4.4.21",
            "v4.4.20",
            "v4.4.19",
            "v4.4.18",
            "v4.4.17",
            "v4.4.16",
            "v4.4.15",
            "v4.4.14",
            "v4.4.13",
            "v4.4.12",
            "v4.4.11",
            "v4.4.10",
            "v4.4.9",
            "v4.4.8",
            "v4.5.7",
            "v4.5.6",
            "v4.5.5",
            "v4.5.4",
            "v4.5.3",
            "v4.5.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80731.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.2.81"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.3.0"
                },
                {
                  "fixed": "5.10.265"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.6.0"
                },
                {
                  "fixed": "5.15.216"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "6.1.183"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.6.152"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.12.104"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.18.45"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "7.1.9"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80731.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.095806730Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/3b9a324e646d3657a8d9806dfbfe4f3e4066e882",
        "https://git.kernel.org/stable/c/53fd7f912c0877647d6a1e1877f5ea8535ee0b4a",
        "https://git.kernel.org/stable/c/74e035f07f53feca09e2352e77fccb09cad5e208",
        "https://git.kernel.org/stable/c/8fc9816404166a90ed8d544dc52482fafffb6d9f",
        "https://git.kernel.org/stable/c/99df6b7a713f96eda206680d100b76e15f9d9b69",
        "https://git.kernel.org/stable/c/b0f92a5731dc82556a9ae005cc35f71ab136307b",
        "https://git.kernel.org/stable/c/dbb30dc943a93e083f1e531bfdc6779e57de40d0",
        "https://git.kernel.org/stable/c/fa6d98dd925e72fc028b26a0cbbff9d2f0601ff6",
        "https://git.kernel.org/stable/c/fc902f52a02298c7432b2334c0c82a2885a1a8b6",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80731.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-80731",
        "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/2026/80xxx/CVE-2026-80731.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-80731",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 510058,
  "published_at": "2026-09-03T08:21:48.924+00:00"
}