Bug 1219731 (CVE-2024-1312)

Summary: VUL-0: CVE-2024-1312: kernel-source,kernel-source-azure,kernel-source-rt: Race condition leads to use after free during VMA lock in lock_vma_under_rcu
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: mhocko, thomas.leroy
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/393351/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-1312:7.0:(AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-02-08 10:50:05 UTC
A race condition during lock_vma_under_rcu() may lead to a use after free issue.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-1312
https://bugzilla.redhat.com/show_bug.cgi?id=2225569
Comment 3 Michal Hocko 2024-02-08 10:56:40 UTC
Is this 657b5146955e ("mm: lock_vma_under_rcu() must check vma->anon_vma under vma lock")?
Comment 4 Thomas Leroy 2024-02-08 11:12:06 UTC
(In reply to Michal Hocko from comment #3)
> Is this 657b5146955e ("mm: lock_vma_under_rcu() must check vma->anon_vma
> under vma lock")?

Yes, it looks like. Debian also tracks this commit as the fix.

SLE15-SP6 and stable seems to have both buggy and fixing commit. So I would say only a changelog update is needed
Comment 5 Vlastimil Babka 2024-02-08 11:23:48 UTC
(In reply to Michal Hocko from comment #3)
> Is this 657b5146955e ("mm: lock_vma_under_rcu() must check vma->anon_vma
> under vma lock")?

It's almost certain, wonder why they can't just include that information. Based on the fixed versions 6.5-rc4 and 6.4.10 stable, and the wording it matches. See https://kernel.dance/#657b5146955e

In that case this only applies to SP6 and we have the fix already, so I'll just add the CVE reference.
Comment 16 Gabriele Sonnu 2024-06-10 12:08:12 UTC
All done, closing.