CVE-2025-37950
JSON

5.5medium

ocfs2: fix panic in failed foilio allocation

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

Description

In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix panic in failed foilio allocation commit 7e119cff9d0a ("ocfs2: convert w_pages to w_folios") and commit 9a5e08652dc4b ("ocfs2: use an array of folios instead of an array of pages") save -ENOMEM in the folio array upon allocation failure and call the folio array free code. The folio array free code expects either valid folio pointers or NULL. Finding the -ENOMEM will result in a panic. Fix by NULLing the error folio entry.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 7e119cff9d0a21e39e53c7d27addc31f4b8c0000 before 80d18f060d5bdf2c5eb3d1d00dcb744d6a879222, from 7e119cff9d0a21e39e53c7d27addc31f4b8c0000 before 31d4cd4eb2f8d9b87ebfa6a5e443a59e3b3d7b8c, 6.14
Not affected: before 6.14, from 6.14.7 up to 6.14.*, from 6.15 up to *
CVE List
linux linux_kernelfrom 6.14 before 6.14.7, 6.15NVD

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix panic in failed foilio allocation commit 7e119cff9d0a ("ocfs2: convert w_pages to w_folios") and commit 9a5e08652dc4b ("ocfs2: use an array of folios instead of an array of pages") save -ENOMEM in the folio array upon allocation failure and call the folio array free code. The folio array free code expects either valid folio pointers or NULL. Finding the -ENOMEM will result in a panic. Fix by NULLing the error folio entry.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ocfs2: Se corrige el pánico en la asignación fallida de foilio, commit 7e119cff9d0a ("ocfs2: convertir w_pages a w_folios") y commit 9a5e08652dc4b ("ocfs2: usar un array de folios en lugar de un array de páginas"). Se guarda -ENOMEM en el array de folios tras un fallo de asignación y se llama al código de liberación del array de folios. Este código espera punteros de folio válidos o NULL. Encontrar -ENOMEM provocará un pánico. Se corrige anulando la entrada de folio con error.

References

Sources

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