CVE-2024-42093
JSON

7.3high

net/dpaa2: Avoid explicit cpumask var allocation on stack

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

Description

In the Linux kernel, the following vulnerability has been resolved: net/dpaa2: 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 93ddf0b211a0a0367d01c9587169c16ed77b4b98 before b2262b3be27cee334a2fa175ae3afb53f38fb0b1, from 93ddf0b211a0a0367d01c9587169c16ed77b4b98 before 763896ab62a672d728f5eb10ac90d98c607a8509, from 93ddf0b211a0a0367d01c9587169c16ed77b4b98 before a55afc0f5f20ba30970aaf7271929dc00eee5e7d, from 93ddf0b211a0a0367d01c9587169c16ed77b4b98 before 48147337d7efdea6ad6e49f5b8eb894b95868ef0, from 93ddf0b211a0a0367d01c9587169c16ed77b4b98 before 69f49527aea12c23b78fb3d0a421950bf44fb4e2, from 93ddf0b211a0a0367d01c9587169c16ed77b4b98 before 5e4f25091e6d06e99a23f724c839a58a8776a527, from 93ddf0b211a0a0367d01c9587169c16ed77b4b98 before d33fe1714a44ff540629b149d8fab4ac6967585c, 4.16
Not affected: before 4.16, 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.*, from 6.6.37 up to 6.6.*
CVE List
linux linux_kernelbefore 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/dpaa2: 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/dpaa2: 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

Sources

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