Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2021-47351
HistoryMay 21, 2024 - 2:35 p.m.

CVE-2021-47351 ubifs: Fix races between xattr_{set|get} and listxattr operations

2024-05-2114:35:55
Linux
github.com
1
ubifs fix races
xattr set get
listxattr operations
linux kernel
memory corruption

6.8 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%

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/[email protected]

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "1e51764a3c2a",
        "lessThan": "7adc05b73d91",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1e51764a3c2a",
        "lessThan": "38dde03eb239",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1e51764a3c2a",
        "lessThan": "9558612cb829",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1e51764a3c2a",
        "lessThan": "c0756f75c221",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1e51764a3c2a",
        "lessThan": "f4e3634a3b64",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/ubifs/super.c",
      "fs/ubifs/ubifs.h",
      "fs/ubifs/xattr.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "2.6.27"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "2.6.27",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "5.4.133",
        "versionType": "custom",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.51",
        "versionType": "custom",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.12.18",
        "versionType": "custom",
        "lessThanOrEqual": "5.12.*"
      },
      {
        "status": "unaffected",
        "version": "5.13.3",
        "versionType": "custom",
        "lessThanOrEqual": "5.13.*"
      },
      {
        "status": "unaffected",
        "version": "5.14",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/ubifs/super.c",
      "fs/ubifs/ubifs.h",
      "fs/ubifs/xattr.c"
    ],
    "defaultStatus": "affected"
  }
]

6.8 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%

Related for VULNRICHMENT:CVE-2021-47351