{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2022-49890",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2022-49890",
    "idYear": 2022,
    "status": "PUBLISHED",
    "publishedAt": "2025-05-01T14:10:34.481Z",
    "updatedAt": "2026-05-11T19:08:43.268Z",
    "importedAt": "2026-10-24T01:56:49.724Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "capabilities: fix potential memleak on error path from vfs_getxattr_alloc()",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\ncapabilities: fix potential memleak on error path from vfs_getxattr_alloc()\n\nIn cap_inode_getsecurity(), we will use vfs_getxattr_alloc() to\ncomplete the memory allocation of tmpbuf, if we have completed\nthe memory allocation of tmpbuf, but failed to call handler->get(...),\nthere will be a memleak in below logic:\n\n  |-- ret = (int)vfs_getxattr_alloc(mnt_userns, ...)\n    |           /* ^^^ alloc for tmpbuf */\n    |-- value = krealloc(*xattr_value, error + 1, flags)\n    |           /* ^^^ alloc memory */\n    |-- error = handler->get(handler, ...)\n    |           /* error! */\n    |-- *xattr_value = value\n    |           /* xattr_value is &tmpbuf (memory leak!) */\n\nSo we will try to free(tmpbuf) after vfs_getxattr_alloc() fails to fix it.\n\n[PM: subject line and backtrace tweaks]",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "8db6c34f1dbc8e06aa016a9b829b06902c3e1340",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6bb00eb21c0fbf18e5d3538c9ff0cf63fd0ace85"
            },
            {
              "version": "8db6c34f1dbc8e06aa016a9b829b06902c3e1340",
              "status": "affected",
              "versionType": "git",
              "lessThan": "90577bcc01c4188416a47269f8433f70502abe98"
            },
            {
              "version": "8db6c34f1dbc8e06aa016a9b829b06902c3e1340",
              "status": "affected",
              "versionType": "git",
              "lessThan": "0c3e6288da650d1ec911a259c77bc2d88e498603"
            },
            {
              "version": "8db6c34f1dbc8e06aa016a9b829b06902c3e1340",
              "status": "affected",
              "versionType": "git",
              "lessThan": "cdf01c807e974048c43c7fd3ca574f6086a57906"
            },
            {
              "version": "8db6c34f1dbc8e06aa016a9b829b06902c3e1340",
              "status": "affected",
              "versionType": "git",
              "lessThan": "2de8eec8afb75792440b8900a01d52b8f6742fd1"
            },
            {
              "version": "8db6c34f1dbc8e06aa016a9b829b06902c3e1340",
              "status": "affected",
              "versionType": "git",
              "lessThan": "7480aeff0093d8c54377553ec6b31110bea37b4d"
            },
            {
              "version": "8db6c34f1dbc8e06aa016a9b829b06902c3e1340",
              "status": "affected",
              "versionType": "git",
              "lessThan": "8cf0a1bc12870d148ae830a4ba88cfdf0e879cee"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "4.14",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "4.14"
            },
            {
              "version": "4.14.299",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.14.*"
            },
            {
              "version": "4.19.265",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.19.*"
            },
            {
              "version": "5.4.224",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.154",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.78",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.0.8",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.0.*"
            },
            {
              "version": "6.1",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}