{"id":"CVE-2026-31675","aliases":["CVE-2026-31675"],"related":[],"kind":"vulnerability","state":"published","title":"net/sched: sch_netem: fix out-of-bounds access in packet corruption","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_netem: fix out-of-bounds access in packet corruption\n\nIn netem_enqueue(), the packet corruption logic uses\nget_random_u32_below(skb_headlen(skb)) to select an index for\nmodifying skb->data. When an AF_PACKET TX_RING sends fully non-linear\npackets over an IPIP tunnel, skb_headlen(skb) evaluates to 0.\n\nPassing 0 to get_random_u32_below() takes the variable-ceil slow path\nwhich returns an unconstrained 32-bit random integer. Using this\nunconstrained value as an offset into skb->data results in an\nout-of-bounds memory access.\n\nFix this by verifying skb_headlen(skb) is non-zero before attempting\nto corrupt the linear data area. Fully non-linear packets will silently\nbypass the corruption logic.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_netem: fix out-of-bounds access in packet corruption\n\nIn netem_enqueue(), the packet corruption logic uses\nget_random_u32_below(skb_headlen(skb)) to select an index for\nmodifying skb->data. When an AF_PACKET TX_RING sends fully non-linear\npackets over an IPIP tunnel, skb_headlen(skb) evaluates to 0.\n\nPassing 0 to get_random_u32_below() takes the variable-ceil slow path\nwhich returns an unconstrained 32-bit random integer. Using this\nunconstrained value as an offset into skb->data results in an\nout-of-bounds memory access.\n\nFix this by verifying skb_headlen(skb) is non-zero before attempting\nto corrupt the linear data area. Fully non-linear packets will silently\nbypass the corruption logic.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet/sched: sch_netem: corrección de acceso fuera de límites en la corrupción de paquetes\n\nEn netem_enqueue(), la lógica de corrupción de paquetes utiliza get_random_u32_below(skb_headlen(skb)) para seleccionar un índice para modificar skb  ->  data. Cuando un AF_PACKET TX_RING envía paquetes completamente no lineales a través de un túnel IPIP, skb_headlen(skb) se evalúa a 0.\n\nPasar 0 a get_random_u32_below() toma la ruta lenta de techo variable que devuelve un entero aleatorio de 32 bits sin restricciones. Usar este valor sin restricciones como un desplazamiento en skb  ->  data resulta en un acceso a memoria fuera de límites.\n\nCorregir esto al verificar que skb_headlen(skb) no sea cero antes de intentar corromper el área de datos lineal. Los paquetes completamente no lineales omitirán silenciosamente la lógica de corrupción.","source":"nvd"}],"published":"2026-04-25T08:46:51.184Z","modified":"2026-11-23T08:17:15.733Z","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":["CWE-125","CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"c865e5d99e25a171e8262fc0f7ba608568633c64","fixed":"48358cb08bf7fb712ab773a27edc4a68c980c721","status":"affected"},{"type":"git","introduced":"c865e5d99e25a171e8262fc0f7ba608568633c64","fixed":"0f550925d7438781bb73ef02eda0efa32cda6d10","status":"affected"},{"type":"git","introduced":"c865e5d99e25a171e8262fc0f7ba608568633c64","fixed":"8d3de49c22ec0ec8f7199cc7e2b0559de7306f87","status":"affected"},{"type":"git","introduced":"c865e5d99e25a171e8262fc0f7ba608568633c64","fixed":"a14b56863348686dd0387eea8ce66b85cf455908","status":"affected"},{"type":"git","introduced":"c865e5d99e25a171e8262fc0f7ba608568633c64","fixed":"13a66ca1e235d4bcd53d12d4c68490cad7f8e46f","status":"affected"},{"type":"git","introduced":"c865e5d99e25a171e8262fc0f7ba608568633c64","fixed":"3a2999704ac36cfb4041fed3652d26a3373e8d12","status":"affected"},{"type":"git","introduced":"c865e5d99e25a171e8262fc0f7ba608568633c64","fixed":"4fd258e281fa8bc15e9ce2c7691941537e9258ad","status":"affected"},{"type":"git","introduced":"c865e5d99e25a171e8262fc0f7ba608568633c64","fixed":"d64cb81dcbd54927515a7f65e5e24affdc73c14b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.16","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.134","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.81","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.22","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.12","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.16","fixed":"6.6.134"},{"status":"affected","introduced":"6.7","fixed":"6.12.81"},{"status":"affected","introduced":"6.13","fixed":"6.18.22"},{"status":"affected","introduced":"6.19","fixed":"6.19.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/48358cb08bf7fb712ab773a27edc4a68c980c721","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0f550925d7438781bb73ef02eda0efa32cda6d10","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8d3de49c22ec0ec8f7199cc7e2b0559de7306f87","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a14b56863348686dd0387eea8ce66b85cf455908","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13a66ca1e235d4bcd53d12d4c68490cad7f8e46f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a2999704ac36cfb4041fed3652d26a3373e8d12","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4fd258e281fa8bc15e9ce2c7691941537e9258ad","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d64cb81dcbd54927515a7f65e5e24affdc73c14b","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:12:12.570Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31675","url":"https://www.cve.org/CVERecord?id=CVE-2026-31675","licence":"CVE Terms of Use","modified":"2026-11-23T07:58:41.522Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31675","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31675","licence":"Public domain","modified":"2026-11-23T08:17:15.733Z"}],"updatedAt":"2026-11-25T22:59:19.589Z","epss":{"score":0.00171,"percentile":0.06764,"date":"2026-12-01T12:00:22.000Z"}}