Bug 1225182 (CVE-2021-47351)

Summary: VUL-0: CVE-2021-47351: kernel: ubifs: Fix races between xattr_{set|get} and listxattr operations
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: ailiopoulos, andrea.mattiazzo
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/406989/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-47351:6.3:(AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-05-24 07:44:52 UTC
In the Linux kernel, the following vulnerability has been resolved:

ubifs: Fix races between xattr_{set|get} and listxattr operations

UBIFS may occur some problems with concurrent xattr_{set|get} and
listxattr operations, such as assertion failure, memory corruption,
stale xattr value[1].

Fix it by importing a new rw-lock in @ubifs_inode to serilize write
operations on xattr, concurrent read operations are still effective,
just like ext4.

[1] https://lore.kernel.org/linux-mtd/20200630130438.141649-1-houtao1@huawei.com

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-47351
https://www.cve.org/CVERecord?id=CVE-2021-47351
https://git.kernel.org/stable/c/38dde03eb239605f428f3f1e4baa73d4933a4cc6
https://git.kernel.org/stable/c/7adc05b73d91a5e3d4ca7714fa53ad9b70c53d08
https://git.kernel.org/stable/c/9558612cb829f2c022b788f55d6b8437d5234a82
https://git.kernel.org/stable/c/c0756f75c22149d20fcb7d8409827cee905eb386
https://git.kernel.org/stable/c/f4e3634a3b642225a530c292fdb1e8a4007507f5
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2021/CVE-2021-47351.mbox
https://bugzilla.redhat.com/show_bug.cgi?id=2282402
Comment 1 Anthony Iliopoulos 2024-05-24 08:02:22 UTC
ubifs is not supported (marked -!optional), ships only Leap so possible affected branches are only SLE15-SP{5,6}.

commit f4e3634a3b64 ("ubifs: Fix races between xattr_{set|get} and listxattr operations") was merged upstream in v5.14-rc1 which predates both affected branches that already include it.

nothing to do here, assigning to sec.
Comment 2 Andrea Mattiazzo 2024-05-24 10:46:13 UTC
All done, closing.