Bug 2300400 (CVE-2024-41033) - CVE-2024-41033 kernel: cachestat: do not flush stats in recency check
Summary: CVE-2024-41033 kernel: cachestat: do not flush stats in recency check
Keywords:
Status: NEW
Alias: CVE-2024-41033
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: 2301534
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-29 15:31 UTC by OSIDB Bzimport
Modified: 2024-08-30 05:46 UTC (History)
4 users (show)

Fixed In Version: kernel 6.9.10, kernel 6.10
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-29 15:31:52 UTC
In the Linux kernel, the following vulnerability has been resolved:

cachestat: do not flush stats in recency check

syzbot detects that cachestat() is flushing stats, which can sleep, in its
RCU read section (see [1]).  This is done in the workingset_test_recent()
step (which checks if the folio's eviction is recent).

Move the stat flushing step to before the RCU read section of cachestat,
and skip stat flushing during the recency check.

[1]: https://lore.kernel.org/cgroups/000000000000f71227061bdf97e0@google.com/

Comment 1 Mauro Matteo Cascella 2024-07-30 08:57:50 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024072922-CVE-2024-41033-d23e@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 08:58:11 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301534]


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