{"id":"CVE-2026-80731","aliases":["CVE-2026-80731"],"related":[],"kind":"vulnerability","state":"published","title":"net: remove CAP_SYS_RAWIO zero-padding in dev_validate_header","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-09-03T08:21:48.924Z","modified":"2026-10-16T20:18:09.420Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b5518429e70cd783b8ca52335456172c1a0589f6","fixed":"53fd7f912c0877647d6a1e1877f5ea8535ee0b4a","status":"affected"},{"type":"git","introduced":"2793a23aacbd754dbbb5cb75093deb7e4103bace","fixed":"fa6d98dd925e72fc028b26a0cbbff9d2f0601ff6","status":"affected"},{"type":"git","introduced":"2793a23aacbd754dbbb5cb75093deb7e4103bace","fixed":"8fc9816404166a90ed8d544dc52482fafffb6d9f","status":"affected"},{"type":"git","introduced":"2793a23aacbd754dbbb5cb75093deb7e4103bace","fixed":"b0f92a5731dc82556a9ae005cc35f71ab136307b","status":"affected"},{"type":"git","introduced":"2793a23aacbd754dbbb5cb75093deb7e4103bace","fixed":"99df6b7a713f96eda206680d100b76e15f9d9b69","status":"affected"},{"type":"git","introduced":"2793a23aacbd754dbbb5cb75093deb7e4103bace","fixed":"74e035f07f53feca09e2352e77fccb09cad5e208","status":"affected"},{"type":"git","introduced":"2793a23aacbd754dbbb5cb75093deb7e4103bace","fixed":"dbb30dc943a93e083f1e531bfdc6779e57de40d0","status":"affected"},{"type":"git","introduced":"2793a23aacbd754dbbb5cb75093deb7e4103bace","fixed":"fc902f52a02298c7432b2334c0c82a2885a1a8b6","status":"affected"},{"type":"git","introduced":"2793a23aacbd754dbbb5cb75093deb7e4103bace","fixed":"3b9a324e646d3657a8d9806dfbfe4f3e4066e882","status":"affected"},{"type":"git","version":"f58a6c08ebdfa978178bbca78c2ba744a2665912","status":"affected"},{"type":"git","version":"1df16498dfd0d5a129bdf2982d9a08df73e8923d","status":"affected"},{"type":"git","version":"8b8d278aa4de9335682bbd4a3bb619af015c859e","status":"affected"},{"type":"git","version":"6804052fa9d86e9a512c88b24a5debbfc1a490fc","status":"affected"},{"type":"semver","introduced":"3.2.80","fixed":"3.2.81","status":"affected"},{"type":"semver","introduced":"3.16.36","fixed":"3.17","status":"affected"},{"type":"semver","introduced":"4.1.28","fixed":"4.2","status":"affected"},{"type":"semver","introduced":"4.4.8","fixed":"4.5","status":"affected"},{"type":"semver","introduced":"4.5.2","fixed":"4.6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.6","status":"unaffected"},{"type":"semver","introduced":"3.2.81","lastAffected":"3.2.*","status":"unaffected"},{"type":"semver","introduced":"5.10.265","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.216","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.152","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.104","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.45","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.9","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/53fd7f912c0877647d6a1e1877f5ea8535ee0b4a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fa6d98dd925e72fc028b26a0cbbff9d2f0601ff6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8fc9816404166a90ed8d544dc52482fafffb6d9f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b0f92a5731dc82556a9ae005cc35f71ab136307b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/99df6b7a713f96eda206680d100b76e15f9d9b69","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/74e035f07f53feca09e2352e77fccb09cad5e208","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dbb30dc943a93e083f1e531bfdc6779e57de40d0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fc902f52a02298c7432b2334c0c82a2885a1a8b6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b9a324e646d3657a8d9806dfbfe4f3e4066e882","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T19:21:14.341Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80731","url":"https://www.cve.org/CVERecord?id=CVE-2026-80731","licence":"CVE Terms of Use","modified":"2026-10-16T19:26:36.020Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80731","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80731","licence":"Public domain","modified":"2026-10-16T20:18:09.420Z"}],"updatedAt":"2026-11-25T22:59:36.158Z","epss":{"score":0.00142,"percentile":0.03687,"date":"2026-12-01T12:00:22.000Z"}}