CVE-2024-27046
JSON

5.5medium

nfp: flower: handle acti_netdevs allocation failure

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: nfp: flower: handle acti_netdevs allocation failure The kmalloc_array() in nfp_fl_lag_do_work() will return null, if the physical memory has run out. As a result, if we dereference the acti_netdevs, the null pointer dereference bugs will happen. This patch adds a check to judge whether allocation failure occurs. If it happens, the delayed work will be rescheduled and try again.

Affected

Product or packageVersionsReported by
Linux Linuxfrom bb9a8d031140f186d13d82f57b0f5646d596652f before d746889db75a76aeee95fb705b8e1ac28c684a2e, from bb9a8d031140f186d13d82f57b0f5646d596652f before 3b1e8a617eb0f4cdc19def530047a95b5abde07d, from bb9a8d031140f186d13d82f57b0f5646d596652f before 928705e341010dd910fdece61ccb974f494a758f, from bb9a8d031140f186d13d82f57b0f5646d596652f before 0d387dc503f9a53e6d1f6e9dd0292d38f083eba5, from bb9a8d031140f186d13d82f57b0f5646d596652f before c9b4e220dd18f79507803f38a55d53b483f6c9c3, from bb9a8d031140f186d13d82f57b0f5646d596652f before 408ba7fd04f959c61b50db79c983484312fea642, from bb9a8d031140f186d13d82f57b0f5646d596652f before c8df9203bf22c66fa26e8d8c7f8ce181cf88099d, from bb9a8d031140f186d13d82f57b0f5646d596652f before 9d8eb1238377cd994829f9162ae396a84ae037b2 and 2 more
Not affected: before 4.18, from 4.19.311 up to 4.19.*, from 5.4.273 up to 5.4.*, from 5.10.214 up to 5.10.*, from 5.15.153 up to 5.15.*, from 6.1.83 up to 6.1.*
CVE List
linux linux_kernelfrom 4.18 before 4.19.311, from 4.20 before 5.4.273, from 5.5 before 5.10.214, from 5.11 before 5.15.153, from 5.16 before 6.1.83, from 6.2 before 6.6.23, from 6.7 before 6.7.11, from 6.8 before 6.8.2NVD

Classification

CWE-476

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: nfp: flower: handle acti_netdevs allocation failure The kmalloc_array() in nfp_fl_lag_do_work() will return null, if the physical memory has run out. As a result, if we dereference the acti_netdevs, the null pointer dereference bugs will happen. This patch adds a check to judge whether allocation failure occurs. If it happens, the delayed work will be rescheduled and try again.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nfp: flor: manejar el error de asignación de acti_netdevs El kmalloc_array() en nfp_fl_lag_do_work() devolverá nulo, si la memoria física se ha agotado. Como resultado, si eliminamos la referencia a acti_netdevs, se producirán errores de desreferencia del puntero nulo. Este parche agrega una verificación para juzgar si se produce una falla en la asignación. Si esto sucede, el trabajo retrasado se reprogramará y se intentará nuevamente.

References

https://git.kernel.org/stable/c/d746889db75a76aeee95fb705b8e1ac28c684a2epatch
https://git.kernel.org/stable/c/3b1e8a617eb0f4cdc19def530047a95b5abde07dpatch
https://git.kernel.org/stable/c/928705e341010dd910fdece61ccb974f494a758fpatch
https://git.kernel.org/stable/c/0d387dc503f9a53e6d1f6e9dd0292d38f083eba5patch
https://git.kernel.org/stable/c/c9b4e220dd18f79507803f38a55d53b483f6c9c3patch
https://git.kernel.org/stable/c/408ba7fd04f959c61b50db79c983484312fea642patch
https://git.kernel.org/stable/c/c8df9203bf22c66fa26e8d8c7f8ce181cf88099dpatch
https://git.kernel.org/stable/c/9d8eb1238377cd994829f9162ae396a84ae037b2patch
https://git.kernel.org/stable/c/84e95149bd341705f0eca6a7fcb955c548805002patch
https://lists.debian.org/debian-lts-announce/2024/06/msg00017.htmlpatch
https://lists.debian.org/debian-lts-announce/2024/06/msg00020.htmlpatch

Sources

SourceRecordLicence
CVE ListCVE-2024-27046 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-27046 changed 2026-06-17Public domain