Bug 1220956 (CVE-2021-47088) - VUL-0: CVE-2021-47088: kernel: mm/damon/dbgfs: protect targets destructions with kdamond_lock
Summary: VUL-0: CVE-2021-47088: kernel: mm/damon/dbgfs: protect targets destructions w...
Status: RESOLVED FIXED
Alias: CVE-2021-47088
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Kernel Bugs
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/396234/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-05 10:48 UTC by SMASH SMASH
Modified: 2024-03-05 11:00 UTC (History)
1 user (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-05 10:48:13 UTC
In the Linux kernel, the following vulnerability has been resolved:

mm/damon/dbgfs: protect targets destructions with kdamond_lock

DAMON debugfs interface iterates current monitoring targets in
'dbgfs_target_ids_read()' while holding the corresponding
'kdamond_lock'.  However, it also destructs the monitoring targets in
'dbgfs_before_terminate()' without holding the lock.  This can result in
a use_after_free bug.  This commit avoids the race by protecting the
destruction with the corresponding 'kdamond_lock'.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-47088
https://www.cve.org/CVERecord?id=CVE-2021-47088
https://git.kernel.org/stable/c/330c6117a82c16a9a365a51cec5c9ab30b13245c
https://git.kernel.org/stable/c/34796417964b8d0aef45a99cf6c2d20cebe33733
Comment 1 Robert Frohl 2024-03-05 11:00:08 UTC
does not affect any of our kernels, closing