Bug 1221295 (CVE-2024-26618) - VUL-0: CVE-2024-26618: kernel: arm64/sme: Always exit sme_alloc() early with existing storage
Summary: VUL-0: CVE-2024-26618: kernel: arm64/sme: Always exit sme_alloc() early with ...
Status: RESOLVED FIXED
Alias: CVE-2024-26618
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/397155/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-12 13:09 UTC by SMASH SMASH
Modified: 2024-06-25 18:20 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-03-12 13:09:10 UTC
In the Linux kernel, the following vulnerability has been resolved:

arm64/sme: Always exit sme_alloc() early with existing storage

When sme_alloc() is called with existing storage and we are not flushing we
will always allocate new storage, both leaking the existing storage and
corrupting the state. Fix this by separating the checks for flushing and
for existing storage as we do for SVE.

Callers that reallocate (eg, due to changing the vector length) should
call sme_free() themselves.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-26618
https://www.cve.org/CVERecord?id=CVE-2024-26618
https://git.kernel.org/stable/c/569156e4fa347237f8fa2a7e935d860109c55ac4
https://git.kernel.org/stable/c/814af6b4e6000e574e74d92197190edf07cc3680
https://git.kernel.org/stable/c/dc7eb8755797ed41a0d1b5c0c39df3c8f401b3d9
Comment 1 Gabriele Sonnu 2024-03-12 13:10:52 UTC
Offending commit (5d0a8d2fba50) found in:
 - ALP-current
 - SLE15-SP6
 - stable

Fixing commit (814af6b4e600) found in:
 - ALP-current
 - SLE15-SP6
 - stable

@kernel-team, please add the references.
Comment 2 Ivan Ivanov 2024-03-13 13:37:19 UTC
Refernce updated. Pull request to SLE15-SP6 sent.
Comment 3 Ivan Ivanov 2024-03-21 09:13:29 UTC
And merged in SLE15-SP6 with 50627cc8d0845aa6ab62ff8154fccd9675b3b38f
Comment 4 Ivan Ivanov 2024-03-22 08:08:01 UTC
Back to security team.
Comment 17 Gabriele Sonnu 2024-06-07 15:38:18 UTC
All done, closing.