Bug 2363358 (CVE-2022-49815) - CVE-2022-49815 kernel: erofs: fix missing xas_retry() in fscache mode
Summary: CVE-2022-49815 kernel: erofs: fix missing xas_retry() in fscache mode
Keywords:
Status: NEW
Alias: CVE-2022-49815
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-01 15:01 UTC by OSIDB Bzimport
Modified: 2025-06-20 16:12 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-01 15:01:17 UTC
In the Linux kernel, the following vulnerability has been resolved:

erofs: fix missing xas_retry() in fscache mode

The xarray iteration only holds the RCU read lock and thus may encounter
XA_RETRY_ENTRY if there's process modifying the xarray concurrently.
This will cause oops when referring to the invalid entry.

Fix this by adding the missing xas_retry(), which will make the
iteration wind back to the root node if XA_RETRY_ENTRY is encountered.

Comment 1 Avinash Hanwate 2025-05-02 04:54:05 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025050131-CVE-2022-49815-ebd2@gregkh/T


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