Bug 1219731 (CVE-2024-1312) - 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
Summary: VUL-0: CVE-2024-1312: kernel-source,kernel-source-azure,kernel-source-rt: Rac...
Status: RESOLVED FIXED
Alias: CVE-2024-1312
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/393351/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-1312:7.0:(AV:L...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-08 10:50 UTC by SMASH SMASH
Modified: 2024-06-25 18:09 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.