# CVE-2025-37950: ocfs2: fix panic in failed foilio allocation

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-05-20T16:01:45.918Z
- Modified: 2026-06-17T09:15:45.533Z
- Weaknesses: CWE-476
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 6.14 before 6.14.7; 6.15

## References

- <https://git.kernel.org/stable/c/80d18f060d5bdf2c5eb3d1d00dcb744d6a879222> (patch)
- <https://git.kernel.org/stable/c/31d4cd4eb2f8d9b87ebfa6a5e443a59e3b3d7b8c> (patch)

## Sources

- CVE List: [CVE-2025-37950](https://www.cve.org/CVERecord?id=CVE-2025-37950), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-37950](https://nvd.nist.gov/vuln/detail/CVE-2025-37950), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-37950 · Whole record: https://cve.day/CVE-2025-37950.json · Rebuilt by cve.day 2026-11-25T22:58:58.303Z
