CVE-2024-42094
JSON

7.1high

net/iucv: Avoid explicit cpumask var allocation on stack

Severity
7.1high CVSS:3.1 by NVD
Exploit likelihood
0.24% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: net/iucv: Avoid explicit cpumask var allocation on stack For CONFIG_CPUMASK_OFFSTACK=y kernel, explicit allocation of cpumask variable on stack is not recommended since it can cause potential stack overflow. Instead, kernel code should always use *cpumask_var API(s) to allocate cpumask var in config-neutral way, leaving allocation strategy to CONFIG_CPUMASK_OFFSTACK. Use *cpumask_var API(s) to address it.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 2356f4cb191100a5e92d537f13e5efdbc697e9cb before 2b085521be5292016097b5e7ca81b26be3f7098d, from 2356f4cb191100a5e92d537f13e5efdbc697e9cb before 842afb47d84536fc976fece8fb6c54bea711ad1a, from 2356f4cb191100a5e92d537f13e5efdbc697e9cb before 9dadab0db7d904413ea1cdaa13f127da05c31e71, from 2356f4cb191100a5e92d537f13e5efdbc697e9cb before 0af718a690acc089aa1bbb95a93df833d864ef53, from 2356f4cb191100a5e92d537f13e5efdbc697e9cb before d85ca8179a54ff8cf1e1f8c3c9e3799831319bae, from 2356f4cb191100a5e92d537f13e5efdbc697e9cb before 724e7965af054079242b8d6f7e50ee226730a756, from 2356f4cb191100a5e92d537f13e5efdbc697e9cb before 2d090c7f7be3b26fcb80ac04d08a4a8062b1d959, from 2356f4cb191100a5e92d537f13e5efdbc697e9cb before be4e1304419c99a164b4c0e101c7c2a756b635b9 and 1 more
Not affected: before 2.6.21, from 4.19.317 up to 4.19.*, from 5.4.279 up to 5.4.*, from 5.10.221 up to 5.10.*, from 5.15.162 up to 5.15.*, from 6.1.97 up to 6.1.*
CVE List
linux linux_kernelbefore 4.19.317, from 4.20 before 5.4.279, from 5.5 before 5.10.221, from 5.11 before 5.15.162, from 5.16 before 6.1.97, from 6.2 before 6.6.37, from 6.7 before 6.9.8NVD

Classification

CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: net/iucv: Avoid explicit cpumask var allocation on stack For CONFIG_CPUMASK_OFFSTACK=y kernel, explicit allocation of cpumask variable on stack is not recommended since it can cause potential stack overflow. Instead, kernel code should always use *cpumask_var API(s) to allocate cpumask var in config-neutral way, leaving allocation strategy to CONFIG_CPUMASK_OFFSTACK. Use *cpumask_var API(s) to address it.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: net/iucv: evite la asignación explícita de la variable cpumask en la pila. Para el kernel CONFIG_CPUMASK_OFFSTACK=y, no se recomienda la asignación explícita de la variable cpumask en la pila, ya que puede causar un posible desbordamiento de la pila. En su lugar, el código del kernel siempre debe usar las API *cpumask_var para asignar cpumask var de manera neutral en cuanto a configuración, dejando la estrategia de asignación a CONFIG_CPUMASK_OFFSTACK. Utilice las API *cpumask_var para solucionarlo.

References

https://git.kernel.org/stable/c/2b085521be5292016097b5e7ca81b26be3f7098dpatch
https://git.kernel.org/stable/c/842afb47d84536fc976fece8fb6c54bea711ad1apatch
https://git.kernel.org/stable/c/9dadab0db7d904413ea1cdaa13f127da05c31e71patch
https://git.kernel.org/stable/c/0af718a690acc089aa1bbb95a93df833d864ef53patch
https://git.kernel.org/stable/c/d85ca8179a54ff8cf1e1f8c3c9e3799831319baepatch
https://git.kernel.org/stable/c/724e7965af054079242b8d6f7e50ee226730a756patch
https://git.kernel.org/stable/c/2d090c7f7be3b26fcb80ac04d08a4a8062b1d959patch
https://git.kernel.org/stable/c/be4e1304419c99a164b4c0e101c7c2a756b635b9patch
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
https://cert-portal.siemens.com/productcert/html/ssa-265688.html
https://cert-portal.siemens.com/productcert/html/ssa-613116.html
https://cert-portal.siemens.com/productcert/html/ssa-355557.html

Sources

SourceRecordLicence
CVE ListCVE-2024-42094 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-42094 changed 2026-10-15Public domain