{"id":"CVE-2026-74582","published":"2026-08-21T16:31:55Z","modified":"2026-10-16T19:05:58Z","title":"packet: use consistent hard_header_len in non-ring send paths","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\npacket: use consistent hard_header_len in non-ring send paths\n\npacket_snd() reads dev->hard_header_len multiple times while allocating\nand constructing an skb. Device reconfiguration can change this value\nconcurrently, for example through bonding device type changes.\n\nFor SOCK_RAW, packet_snd() can save a larger value in reserve and later\nallocate headroom using a smaller value. Moving skb->data back by reserve\nthen places it before skb->head, and the following copy from userspace can\nattempt an out-of-bounds write.\n\npacket_sendmsg_spkt() has the same issue because it calculates its\nreservation and header offset from separate reads before dropping the RCU\nread lock to allocate the skb.\n\nAdd LL_RESERVED_SPACE_EX() for callers that already saved a header length.\nRead hard_header_len once in packet_snd() and use it for allocation and\nconstruction. In packet_sendmsg_spkt(), preserve the allocation-time value\nthrough the device lookup retry.\n\nThe separate SOCK_DGRAM consistency problem between hard_header_len and\nheader_ops->create is not addressed here.","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.0012,"percentile":0.01908,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/bcd4df60ac9481b1ceffdfe5ec38fe51dcaae812","tags":[]},{"url":"https://git.kernel.org/stable/c/78a47127e33c340bc6d38dcc4552a094b4f5cc77","tags":[]},{"url":"https://git.kernel.org/stable/c/142e287b3a25cfe909215177c23243e7fc5ae2b1","tags":[]},{"url":"https://git.kernel.org/stable/c/91f041451f967cd87ed722a8f43c0b767a64f1a0","tags":[]},{"url":"https://git.kernel.org/stable/c/9052756290962ffb9a661bcf319e92dedaaedfed","tags":[]},{"url":"https://git.kernel.org/stable/c/5bb10753d428aadfc356a2bfe9acea09c82a62ec","tags":[]},{"url":"https://git.kernel.org/stable/c/b06b6fce6d7deaf7238e09b48ce3b1125ff41acd","tags":[]},{"url":"https://git.kernel.org/stable/c/03390aa32e669cc4ecd7d34108e2e1afc13d689d","tags":[]}],"priority":{"score":5.8,"factors":[{"name":"EPSS percentile","points":0.38},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba, < bcd4df60ac9481b1ceffdfe5ec38fe51dcaae812",">= b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba, < 78a47127e33c340bc6d38dcc4552a094b4f5cc77",">= b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba, < 142e287b3a25cfe909215177c23243e7fc5ae2b1",">= b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba, < 91f041451f967cd87ed722a8f43c0b767a64f1a0",">= b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba, < 9052756290962ffb9a661bcf319e92dedaaedfed",">= b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba, < 5bb10753d428aadfc356a2bfe9acea09c82a62ec",">= b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba, < b06b6fce6d7deaf7238e09b48ce3b1125ff41acd",">= b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba, < 03390aa32e669cc4ecd7d34108e2e1afc13d689d","d9fb8cc230b2a4757e9fe4f81468f81212d4deaa","6190cce26e40bf71c4d375b21eea74bb07b6a0f3"]},{"vendor":"Linux","product":"Linux","versions":["4.17"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T19:01:14.406882Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-64004","exploited":false,"provenance":"source"}}