{"id":"CVE-2021-47351","aliases":["CVE-2021-47351"],"related":[],"kind":"vulnerability","state":"published","title":"ubifs: Fix races between xattr_{set|get} and listxattr operations","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nubifs: Fix races between xattr_{set|get} and listxattr operations\n\nUBIFS may occur some problems with concurrent xattr_{set|get} and\nlistxattr operations, such as assertion failure, memory corruption,\nstale xattr value[1].\n\nFix it by importing a new rw-lock in @ubifs_inode to serilize write\noperations on xattr, concurrent read operations are still effective,\njust like ext4.\n\n[1] https://lore.kernel.org/linux-mtd/20200630130438.141649-1-houtao1@huawei.com","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nubifs: Fix races between xattr_{set|get} and listxattr operations\n\nUBIFS may occur some problems with concurrent xattr_{set|get} and\nlistxattr operations, such as assertion failure, memory corruption,\nstale xattr value[1].\n\nFix it by importing a new rw-lock in @ubifs_inode to serilize write\noperations on xattr, concurrent read operations are still effective,\njust like ext4.\n\n[1] https://lore.kernel.org/linux-mtd/20200630130438.141649-1-houtao1@huawei.com","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ubifs: corrige ejecucións entre las operaciones xattr_{set|get} y listxattr. UBIFS puede producir algunos problemas con las operaciones xattr_{set|get} y listxattr simultáneas, como fallas de aserción y corrupción de memoria. , valor xattr obsoleto [1]. Solucónelo importando un nuevo rw-lock en @ubifs_inode para serializar las operaciones de escritura en xattr, las operaciones de lectura simultáneas siguen siendo efectivas, al igual que ext4. [1] https://lore.kernel.org/linux-mtd/20200630130438.141649-1-houtao1@huawei.com","source":"nvd"}],"published":"2024-05-21T14:35:55.806Z","modified":"2026-08-05T08:47:23.774Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-617","CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d","fixed":"7adc05b73d91a5e3d4ca7714fa53ad9b70c53d08","status":"affected"},{"type":"git","introduced":"1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d","fixed":"38dde03eb239605f428f3f1e4baa73d4933a4cc6","status":"affected"},{"type":"git","introduced":"1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d","fixed":"9558612cb829f2c022b788f55d6b8437d5234a82","status":"affected"},{"type":"git","introduced":"1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d","fixed":"c0756f75c22149d20fcb7d8409827cee905eb386","status":"affected"},{"type":"git","introduced":"1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d","fixed":"f4e3634a3b642225a530c292fdb1e8a4007507f5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.27","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.27","status":"unaffected"},{"type":"semver","introduced":"5.4.133","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.51","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.12.18","lastAffected":"5.12.*","status":"unaffected"},{"type":"semver","introduced":"5.13.3","lastAffected":"5.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.27","fixed":"5.4.133"},{"status":"affected","introduced":"5.5","fixed":"5.10.51"},{"status":"affected","introduced":"5.11","fixed":"5.12.18"},{"status":"affected","introduced":"5.13","fixed":"5.13.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/7adc05b73d91a5e3d4ca7714fa53ad9b70c53d08","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/38dde03eb239605f428f3f1e4baa73d4933a4cc6","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9558612cb829f2c022b788f55d6b8437d5234a82","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c0756f75c22149d20fcb7d8409827cee905eb386","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f4e3634a3b642225a530c292fdb1e8a4007507f5","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-11T19:01:36.389Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47351","url":"https://www.cve.org/CVERecord?id=CVE-2021-47351","licence":"CVE Terms of Use","modified":"2026-08-05T08:47:23.774Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47351","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47351","licence":"Public domain","modified":"2026-08-04T10:16:59.280Z"}],"updatedAt":"2026-11-25T22:58:08.811Z","epss":{"score":0.00247,"percentile":0.17095,"date":"2026-12-02T12:00:21.000Z"}}