{"id":"CVE-2026-80731","published":"2026-09-03T08:21:48Z","modified":"2026-10-16T19:26:36Z","title":"net: remove CAP_SYS_RAWIO zero-padding in dev_validate_header","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: remove CAP_SYS_RAWIO zero-padding in dev_validate_header\n\ndev_validate_header() reads dev->hard_header_len directly when\nzero-padding short link layer headers for CAP_SYS_RAWIO holders:\n\n    if (capable(CAP_SYS_RAWIO)) {\n        memset(ll_header + len, 0, dev->hard_header_len - len);\n        return true;\n    }\n\nPacket send paths call dev_validate_header() on skbs whose headroom was\nallocated from an earlier hard_header_len read. If the device is\nreconfigured so that dev->hard_header_len increases before validation,\nthe memset writes past the reserved buffer, an out-of-bounds write.\n\nThis out-of-bounds write is masked in some SOCK_RAW paths today because\nthe same concurrent increase can first make skb_push() exceed the\nreserved headroom and trigger skb_under_panic(). Remove the zero-padding\nbranch before making those hard_header_len reads consistent, so the\nsnapshot fixes do not turn a loud panic into a silent overwrite.\n\nThis path is only reached for variable length L2 protocols, where\nlen < hard_header_len but len >= min_header_len. No remaining in-tree\nvariable length L2 protocol implements header_ops->validate, and the\nCAP_SYS_RAWIO bypass that zero-pads and accepts short headers has no\nreal value beyond allowing testing of intentionally malformed input.\n\nDrop the CAP_SYS_RAWIO branch. The remaining reads of\ndev->hard_header_len in dev_validate_header() are comparisons only and\nhave no memory safety impact.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00193,"percentile":0.05127,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/53fd7f912c0877647d6a1e1877f5ea8535ee0b4a","tags":[]},{"url":"https://git.kernel.org/stable/c/fa6d98dd925e72fc028b26a0cbbff9d2f0601ff6","tags":[]},{"url":"https://git.kernel.org/stable/c/8fc9816404166a90ed8d544dc52482fafffb6d9f","tags":[]},{"url":"https://git.kernel.org/stable/c/b0f92a5731dc82556a9ae005cc35f71ab136307b","tags":[]},{"url":"https://git.kernel.org/stable/c/99df6b7a713f96eda206680d100b76e15f9d9b69","tags":[]},{"url":"https://git.kernel.org/stable/c/74e035f07f53feca09e2352e77fccb09cad5e208","tags":[]},{"url":"https://git.kernel.org/stable/c/dbb30dc943a93e083f1e531bfdc6779e57de40d0","tags":[]},{"url":"https://git.kernel.org/stable/c/fc902f52a02298c7432b2334c0c82a2885a1a8b6","tags":[]},{"url":"https://git.kernel.org/stable/c/3b9a324e646d3657a8d9806dfbfe4f3e4066e882","tags":[]}],"priority":{"score":6.5,"factors":[{"name":"EPSS percentile","points":1.03},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b5518429e70cd783b8ca52335456172c1a0589f6, < 53fd7f912c0877647d6a1e1877f5ea8535ee0b4a",">= 2793a23aacbd754dbbb5cb75093deb7e4103bace, < fa6d98dd925e72fc028b26a0cbbff9d2f0601ff6",">= 2793a23aacbd754dbbb5cb75093deb7e4103bace, < 8fc9816404166a90ed8d544dc52482fafffb6d9f",">= 2793a23aacbd754dbbb5cb75093deb7e4103bace, < b0f92a5731dc82556a9ae005cc35f71ab136307b",">= 2793a23aacbd754dbbb5cb75093deb7e4103bace, < 99df6b7a713f96eda206680d100b76e15f9d9b69",">= 2793a23aacbd754dbbb5cb75093deb7e4103bace, < 74e035f07f53feca09e2352e77fccb09cad5e208",">= 2793a23aacbd754dbbb5cb75093deb7e4103bace, < dbb30dc943a93e083f1e531bfdc6779e57de40d0",">= 2793a23aacbd754dbbb5cb75093deb7e4103bace, < fc902f52a02298c7432b2334c0c82a2885a1a8b6",">= 2793a23aacbd754dbbb5cb75093deb7e4103bace, < 3b9a324e646d3657a8d9806dfbfe4f3e4066e882","f58a6c08ebdfa978178bbca78c2ba744a2665912"]},{"vendor":"Linux","product":"Linux","versions":["4.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T19:21:14.341917Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-70335","exploited":false,"provenance":"source"}}