Bug 1224527 (CVE-2024-35874) - VUL-0: CVE-2024-35874: kernel: aio: Fix null ptr deref in aio_complete() wakeup
Summary: VUL-0: CVE-2024-35874: kernel: aio: Fix null ptr deref in aio_complete() wakeup
Status: RESOLVED FIXED
Alias: CVE-2024-35874
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/406563/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-20 13:28 UTC by SMASH SMASH
Modified: 2024-05-29 12:01 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-05-20 13:28:48 UTC
In the Linux kernel, the following vulnerability has been resolved:

aio: Fix null ptr deref in aio_complete() wakeup

list_del_init_careful() needs to be the last access to the wait queue
entry - it effectively unlocks access.

Previously, finish_wait() would see the empty list head and skip taking
the lock, and then we'd return - but the completion path would still
attempt to do the wakeup after the task_struct pointer had been
overwritten.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-35874
https://www.cve.org/CVERecord?id=CVE-2024-35874
https://git.kernel.org/stable/c/9678bcc6234d83759fe091c197f5017a32b468da
https://git.kernel.org/stable/c/caeb4b0a11b3393e43f7fa8e0a5a18462acc66bd
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-35874.mbox
Comment 1 Gabriel Krisman Bertazi 2024-05-22 23:55:23 UTC
 Issue was introduced in v6.8 and we don't carry the patch in any of our branches. back to security team.

[1:krisman@cartola kernel-source]$ ../scripts/scripts/check-kernel-fix -v -s 5.5 -r CVE-2024-35874
caeb4b0a11b3 ("aio: Fix null ptr deref in aio_complete() wakeup") merged v6.9-rc3~28^2
Fixes: 71eb6b6b0ba9 ("fs/aio: obey min_nr when doing wakeups") merged v6.8-rc1~215^2~18
Security fix for CVE-2024-35874 bsc#1224527 with CVSS 5.5

ACTION NEEDED!
SLE15-SP6: NOPE: no problema for caeb4b0a11b3393e43f7fa8e0a5a18462acc66bd
SLE15-SP5: NOPE: no problema for caeb4b0a11b3393e43f7fa8e0a5a18462acc66bd
SLE12-SP5: NOPE: no problema for caeb4b0a11b3393e43f7fa8e0a5a18462acc66bd
SLE12-SP3-TD: NOPE: no problema for caeb4b0a11b3393e43f7fa8e0a5a18462acc66bd
[0:krisman@cartola kernel-source]$
Comment 2 Andrea Mattiazzo 2024-05-29 12:01:38 UTC
All done, closing.