CVE-2022-50845 (GCVE-0-2022-50845)

Vulnerability from cvelistv5 – Published: 2025-12-30 12:11 – Updated: 2026-05-11 19:26
VLAI
Title
ext4: fix inode leak in ext4_xattr_inode_create() on an error path
Summary
In the Linux kernel, the following vulnerability has been resolved: ext4: fix inode leak in ext4_xattr_inode_create() on an error path There is issue as follows when do setxattr with inject fault: [localhost]# fsck.ext4 -fn /dev/sda e2fsck 1.46.6-rc1 (12-Sep-2022) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Unattached zero-length inode 15. Clear? no Unattached inode 15 Connect to /lost+found? no Pass 5: Checking group summary information /dev/sda: ********** WARNING: Filesystem still has errors ********** /dev/sda: 15/655360 files (0.0% non-contiguous), 66755/2621440 blocks This occurs in 'ext4_xattr_inode_create()'. If 'ext4_mark_inode_dirty()' fails, dropping i_nlink of the inode is needed. Or will lead to inode leak.
Severity
No CVSS data available.
Assigner
Linux CNA under the mitre root
CNA scorecard D 53/100 over 7033 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: bd3b963b273e247e13979f98812a6e4979b5c1e4 , < 0f709e08caffb41bbc9b38b9a4c1bd0769794007 (git)
Affected: bd3b963b273e247e13979f98812a6e4979b5c1e4 , < eab94a46560f68d4bcd15222701ced479f84f427 (git)
Affected: bd3b963b273e247e13979f98812a6e4979b5c1e4 , < 9ef603086c5b796fde1c7f22a17d0fc826ba54cb (git)
Affected: bd3b963b273e247e13979f98812a6e4979b5c1e4 , < 9882601ee689975c1c0076ee65bf222a2a35e535 (git)
Affected: bd3b963b273e247e13979f98812a6e4979b5c1e4 , < 322cf639b0b7f137543072c55545adab782b3a25 (git)
Affected: bd3b963b273e247e13979f98812a6e4979b5c1e4 , < fdaaf45786dc8c17a72901021772520fceb18f8c (git)
Affected: bd3b963b273e247e13979f98812a6e4979b5c1e4 , < 70e5b46beba64706430a87a6d516054225e8ac8a (git)
Affected: bd3b963b273e247e13979f98812a6e4979b5c1e4 , < e4db04f7d3dbbe16680e0ded27ea2a65b10f766a (git)
guessed Create a notification for this product.
Linux Linux Affected: 4.13
Unaffected: 0 , < 4.13 (semver)
Unaffected: 4.14.303 , ≤ 4.14.* (semver)
Unaffected: 4.19.270 , ≤ 4.19.* (semver)
Unaffected: 5.4.229 , ≤ 5.4.* (semver)
Unaffected: 5.10.163 , ≤ 5.10.* (semver)
Unaffected: 5.15.87 , ≤ 5.15.* (semver)
Unaffected: 6.0.18 , ≤ 6.0.* (semver)
Unaffected: 6.1.4 , ≤ 6.1.* (semver)
Unaffected: 6.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/ext4/xattr.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "0f709e08caffb41bbc9b38b9a4c1bd0769794007",
              "status": "affected",
              "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
              "versionType": "git"
            },
            {
              "lessThan": "eab94a46560f68d4bcd15222701ced479f84f427",
              "status": "affected",
              "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
              "versionType": "git"
            },
            {
              "lessThan": "9ef603086c5b796fde1c7f22a17d0fc826ba54cb",
              "status": "affected",
              "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
              "versionType": "git"
            },
            {
              "lessThan": "9882601ee689975c1c0076ee65bf222a2a35e535",
              "status": "affected",
              "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
              "versionType": "git"
            },
            {
              "lessThan": "322cf639b0b7f137543072c55545adab782b3a25",
              "status": "affected",
              "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
              "versionType": "git"
            },
            {
              "lessThan": "fdaaf45786dc8c17a72901021772520fceb18f8c",
              "status": "affected",
              "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
              "versionType": "git"
            },
            {
              "lessThan": "70e5b46beba64706430a87a6d516054225e8ac8a",
              "status": "affected",
              "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
              "versionType": "git"
            },
            {
              "lessThan": "e4db04f7d3dbbe16680e0ded27ea2a65b10f766a",
              "status": "affected",
              "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/ext4/xattr.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.13"
            },
            {
              "lessThan": "4.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.303",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.270",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.229",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.87",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.18",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.303",
                  "versionStartIncluding": "4.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.270",
                  "versionStartIncluding": "4.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.229",
                  "versionStartIncluding": "4.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "4.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.87",
                  "versionStartIncluding": "4.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.18",
                  "versionStartIncluding": "4.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.4",
                  "versionStartIncluding": "4.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "4.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix inode leak in ext4_xattr_inode_create() on an error path\n\nThere is issue as follows when do setxattr with inject fault:\n\n[localhost]# fsck.ext4  -fn  /dev/sda\ne2fsck 1.46.6-rc1 (12-Sep-2022)\nPass 1: Checking inodes, blocks, and sizes\nPass 2: Checking directory structure\nPass 3: Checking directory connectivity\nPass 4: Checking reference counts\nUnattached zero-length inode 15.  Clear? no\n\nUnattached inode 15\nConnect to /lost+found? no\n\nPass 5: Checking group summary information\n\n/dev/sda: ********** WARNING: Filesystem still has errors **********\n\n/dev/sda: 15/655360 files (0.0% non-contiguous), 66755/2621440 blocks\n\nThis occurs in \u0027ext4_xattr_inode_create()\u0027. If \u0027ext4_mark_inode_dirty()\u0027\nfails, dropping i_nlink of the inode is needed. Or will lead to inode leak."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T19:26:13.671Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/0f709e08caffb41bbc9b38b9a4c1bd0769794007"
        },
        {
          "url": "https://git.kernel.org/stable/c/eab94a46560f68d4bcd15222701ced479f84f427"
        },
        {
          "url": "https://git.kernel.org/stable/c/9ef603086c5b796fde1c7f22a17d0fc826ba54cb"
        },
        {
          "url": "https://git.kernel.org/stable/c/9882601ee689975c1c0076ee65bf222a2a35e535"
        },
        {
          "url": "https://git.kernel.org/stable/c/322cf639b0b7f137543072c55545adab782b3a25"
        },
        {
          "url": "https://git.kernel.org/stable/c/fdaaf45786dc8c17a72901021772520fceb18f8c"
        },
        {
          "url": "https://git.kernel.org/stable/c/70e5b46beba64706430a87a6d516054225e8ac8a"
        },
        {
          "url": "https://git.kernel.org/stable/c/e4db04f7d3dbbe16680e0ded27ea2a65b10f766a"
        }
      ],
      "title": "ext4: fix inode leak in ext4_xattr_inode_create() on an error path",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50845",
    "datePublished": "2025-12-30T12:11:02.615Z",
    "dateReserved": "2025-12-30T12:06:07.133Z",
    "dateUpdated": "2026-05-11T19:26:13.671Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-50845",
      "date": "2026-10-29",
      "epss": "0.00251",
      "percentile": "0.16515"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "fs/ext4/xattr.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "0f709e08caffb41bbc9b38b9a4c1bd0769794007",
                    "status": "affected",
                    "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "eab94a46560f68d4bcd15222701ced479f84f427",
                    "status": "affected",
                    "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "9ef603086c5b796fde1c7f22a17d0fc826ba54cb",
                    "status": "affected",
                    "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "9882601ee689975c1c0076ee65bf222a2a35e535",
                    "status": "affected",
                    "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "322cf639b0b7f137543072c55545adab782b3a25",
                    "status": "affected",
                    "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "fdaaf45786dc8c17a72901021772520fceb18f8c",
                    "status": "affected",
                    "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "70e5b46beba64706430a87a6d516054225e8ac8a",
                    "status": "affected",
                    "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e4db04f7d3dbbe16680e0ded27ea2a65b10f766a",
                    "status": "affected",
                    "version": "bd3b963b273e247e13979f98812a6e4979b5c1e4",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "fs/ext4/xattr.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "4.13"
                  },
                  {
                    "lessThan": "4.13",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.14.*",
                    "status": "unaffected",
                    "version": "4.14.303",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.19.*",
                    "status": "unaffected",
                    "version": "4.19.270",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.4.*",
                    "status": "unaffected",
                    "version": "5.4.229",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.10.*",
                    "status": "unaffected",
                    "version": "5.10.163",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.87",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.0.*",
                    "status": "unaffected",
                    "version": "6.0.18",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.4",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "6.2",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix inode leak in ext4_xattr_inode_create() on an error path\n\nThere is issue as follows when do setxattr with inject fault:\n\n[localhost]# fsck.ext4  -fn  /dev/sda\ne2fsck 1.46.6-rc1 (12-Sep-2022)\nPass 1: Checking inodes, blocks, and sizes\nPass 2: Checking directory structure\nPass 3: Checking directory connectivity\nPass 4: Checking reference counts\nUnattached zero-length inode 15.  Clear? no\n\nUnattached inode 15\nConnect to /lost+found? no\n\nPass 5: Checking group summary information\n\n/dev/sda: ********** WARNING: Filesystem still has errors **********\n\n/dev/sda: 15/655360 files (0.0% non-contiguous), 66755/2621440 blocks\n\nThis occurs in \u0027ext4_xattr_inode_create()\u0027. If \u0027ext4_mark_inode_dirty()\u0027\nfails, dropping i_nlink of the inode is needed. Or will lead to inode leak."
          }
        ],
        "id": "CVE-2022-50845",
        "lastModified": "2026-06-17T05:24:17.157",
        "metrics": {},
        "published": "2025-12-30T13:15:59.130",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/0f709e08caffb41bbc9b38b9a4c1bd0769794007"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/322cf639b0b7f137543072c55545adab782b3a25"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/70e5b46beba64706430a87a6d516054225e8ac8a"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/9882601ee689975c1c0076ee65bf222a2a35e535"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/9ef603086c5b796fde1c7f22a17d0fc826ba54cb"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e4db04f7d3dbbe16680e0ded27ea2a65b10f766a"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/eab94a46560f68d4bcd15222701ced479f84f427"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/fdaaf45786dc8c17a72901021772520fceb18f8c"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Deferred"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-06-30T10:36:11+00:00",
      "cve": "CVE-2022-50845",
      "id": "CVE-2022-50845",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:fixed": "279",
      "product_status:known_affected": "112",
      "product_status:known_not_affected": "76",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: Linux kernel (ext4): Denial of Service due to inode leak via failed extended attribute creation",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-50845.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-10-28T01:34:47Z",
      "cve": "CVE-2022-50845",
      "id": "CVE-2022-50845",
      "initial_release_date": "2025-12-31T00:31:26Z",
      "product_status:known_affected": "427",
      "product_status:known_not_affected": "356",
      "product_status:recommended": "225",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-50845",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2025/cve-2022-50845.json",
      "version": "28"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.