Bug 2367592 (CVE-2025-37950) - CVE-2025-37950 kernel: ocfs2: fix panic in failed foilio allocation
Summary: CVE-2025-37950 kernel: ocfs2: fix panic in failed foilio allocation
Keywords:
Status: NEW
Alias: CVE-2025-37950
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-20 17:02 UTC by OSIDB Bzimport
Modified: 2025-05-21 06:12 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-20 17:02:22 UTC
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.

Comment 2 Avinash Hanwate 2025-05-21 06:04:51 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025052000-CVE-2025-37950-2a1f@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.