{"id":"CVE-2026-74582","aliases":["CVE-2026-74582"],"related":[],"kind":"vulnerability","state":"published","title":"packet: use consistent hard_header_len in non-ring send paths","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\npacket: usar un hard_header_len consistente en las rutas de envío que no son de anillo\n\npacket_snd() lee dev -> hard_header_len múltiples veces mientras asigna y construye un skb. La reconfiguración del dispositivo puede cambiar este valor concurrentemente, por ejemplo, a través de cambios en el tipo de dispositivo de enlace.\n\nPara SOCK_RAW, packet_snd() puede guardar un valor mayor en reserva y luego asignar espacio de cabecera usando un valor menor. Mover skb -> data hacia atrás por la reserva entonces lo coloca antes de skb -> head, y la siguiente copia desde el espacio de usuario puede intentar una escritura fuera de límites.\n\npacket_sendmsg_spkt() tiene el mismo problema porque calcula su reserva y desplazamiento de cabecera a partir de lecturas separadas antes de liberar el bloqueo de lectura RCU para asignar el skb.\n\nAñadir LL_RESERVED_SPACE_EX() para las funciones llamantes que ya guardaron una longitud de cabecera. Leer hard_header_len una vez en packet_snd() y usarlo para la asignación y construcción. En packet_sendmsg_spkt(), preservar el valor en el momento de la asignación a través del reintento de búsqueda del dispositivo.\n\nEl problema de consistencia separado de SOCK_DGRAM entre hard_header_len y header_ops -> create no se aborda aquí.","source":"nvd"}],"published":"2026-08-21T16:31:55.283Z","modified":"2026-10-16T20:17:40.100Z","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":"b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba","fixed":"bcd4df60ac9481b1ceffdfe5ec38fe51dcaae812","status":"affected"},{"type":"git","introduced":"b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba","fixed":"78a47127e33c340bc6d38dcc4552a094b4f5cc77","status":"affected"},{"type":"git","introduced":"b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba","fixed":"142e287b3a25cfe909215177c23243e7fc5ae2b1","status":"affected"},{"type":"git","introduced":"b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba","fixed":"91f041451f967cd87ed722a8f43c0b767a64f1a0","status":"affected"},{"type":"git","introduced":"b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba","fixed":"9052756290962ffb9a661bcf319e92dedaaedfed","status":"affected"},{"type":"git","introduced":"b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba","fixed":"5bb10753d428aadfc356a2bfe9acea09c82a62ec","status":"affected"},{"type":"git","introduced":"b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba","fixed":"b06b6fce6d7deaf7238e09b48ce3b1125ff41acd","status":"affected"},{"type":"git","introduced":"b84bbaf7a6c8cca24f8acf25a2c8e46913a947ba","fixed":"03390aa32e669cc4ecd7d34108e2e1afc13d689d","status":"affected"},{"type":"git","version":"d9fb8cc230b2a4757e9fe4f81468f81212d4deaa","status":"affected"},{"type":"git","version":"6190cce26e40bf71c4d375b21eea74bb07b6a0f3","status":"affected"},{"type":"git","version":"01a658c1b9d4b5393c38d5a92d9112ab1425382a","status":"affected"},{"type":"git","version":"8809ae6747e760e6f1d2453ceb08c9bcc4939766","status":"affected"},{"type":"semver","introduced":"4.4.133","fixed":"4.5","status":"affected"},{"type":"semver","introduced":"4.9.103","fixed":"4.10","status":"affected"},{"type":"semver","introduced":"4.14.44","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.16.12","fixed":"4.17","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.17","status":"unaffected"},{"type":"semver","introduced":"5.10.267","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.218","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.185","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/bcd4df60ac9481b1ceffdfe5ec38fe51dcaae812","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/78a47127e33c340bc6d38dcc4552a094b4f5cc77","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/142e287b3a25cfe909215177c23243e7fc5ae2b1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/91f041451f967cd87ed722a8f43c0b767a64f1a0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9052756290962ffb9a661bcf319e92dedaaedfed","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5bb10753d428aadfc356a2bfe9acea09c82a62ec","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b06b6fce6d7deaf7238e09b48ce3b1125ff41acd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/03390aa32e669cc4ecd7d34108e2e1afc13d689d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T19:01:14.406Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74582","url":"https://www.cve.org/CVERecord?id=CVE-2026-74582","licence":"CVE Terms of Use","modified":"2026-10-16T19:05:58.230Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74582","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74582","licence":"Public domain","modified":"2026-10-16T20:17:40.100Z"}],"updatedAt":"2026-11-25T22:59:34.800Z","epss":{"score":0.0012,"percentile":0.02032,"date":"2026-12-01T12:00:22.000Z"}}