Bug 1226939 (CVE-2024-38663)

Summary: VUL-0: CVE-2024-38663: kernel: blk-cgroup: fix list corruption from resetting io stat
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: mhocko, rfrohl
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/411965/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-38663:5.5:(AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-06-25 08:05:29 UTC
In the Linux kernel, the following vulnerability has been resolved:

blk-cgroup: fix list corruption from resetting io stat

Since commit 3b8cc6298724 ("blk-cgroup: Optimize blkcg_rstat_flush()"),
each iostat instance is added to blkcg percpu list, so blkcg_reset_stats()
can't reset the stat instance by memset(), otherwise the llist may be
corrupted.

Fix the issue by only resetting the counter part.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-38663
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-38663.mbox
https://git.kernel.org/stable/c/d4a60298ac34f027a09f8f893fdbd9e06279bb24
https://git.kernel.org/stable/c/89bb36c72e1951843f9e04dc84412e31fcc849a9
https://git.kernel.org/stable/c/6da6680632792709cecf2b006f2fe3ca7857e791
https://www.cve.org/CVERecord?id=CVE-2024-38663