CVE-2022-49331 (GCVE-0-2022-49331)

Vulnerability from cvelistv5 – Published: 2025-02-26 02:10 – Updated: 2025-10-01 19:46
VLAI?
Title
nfc: st21nfca: fix memory leaks in EVT_TRANSACTION handling
Summary
In the Linux kernel, the following vulnerability has been resolved: nfc: st21nfca: fix memory leaks in EVT_TRANSACTION handling Error paths do not free previously allocated memory. Add devm_kfree() to those failure paths.
CWE
  • CWE-401 - Missing Release of Memory after Effective Lifetime
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 , < 593773088d615a46a42c97e01a0550d192bb7f74 (git)
Affected: 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 , < d221ce54ce331c1a23be71eebf57f6a088632383 (git)
Affected: 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 , < 6fce324b530dd74750ad870699e33eeed1029ded (git)
Affected: 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 , < 3eca2c42daa4659965db6817479027cbc6df7899 (git)
Affected: 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 , < 54423649bc0ed464b75807a7cf2857a5871f738f (git)
Affected: 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 , < f444ecd3f57f4ba5090fe8b6756933e37de4226e (git)
Affected: 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 , < db836b97464d44340b568e041fd24602858713f7 (git)
Affected: 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 , < 55904086041ba4ee4070187b36590f8f8d6df4cd (git)
Affected: 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 , < 996419e0594abb311fb958553809f24f38e7abbe (git)
Create a notification for this product.
    Linux Linux Affected: 4.0
Unaffected: 0 , < 4.0 (semver)
Unaffected: 4.9.318 , ≤ 4.9.* (semver)
Unaffected: 4.14.283 , ≤ 4.14.* (semver)
Unaffected: 4.19.247 , ≤ 4.19.* (semver)
Unaffected: 5.4.198 , ≤ 5.4.* (semver)
Unaffected: 5.10.122 , ≤ 5.10.* (semver)
Unaffected: 5.15.47 , ≤ 5.15.* (semver)
Unaffected: 5.17.15 , ≤ 5.17.* (semver)
Unaffected: 5.18.4 , ≤ 5.18.* (semver)
Unaffected: 5.19 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 5.5,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "NONE",
              "integrityImpact": "NONE",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2022-49331",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-10-01T19:43:19.500104Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-401",
                "description": "CWE-401 Missing Release of Memory after Effective Lifetime",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-10-01T19:46:55.618Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/nfc/st21nfca/se.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "593773088d615a46a42c97e01a0550d192bb7f74",
              "status": "affected",
              "version": "26fc6c7f02cb26c39c4733de3dbc3c0646fc1074",
              "versionType": "git"
            },
            {
              "lessThan": "d221ce54ce331c1a23be71eebf57f6a088632383",
              "status": "affected",
              "version": "26fc6c7f02cb26c39c4733de3dbc3c0646fc1074",
              "versionType": "git"
            },
            {
              "lessThan": "6fce324b530dd74750ad870699e33eeed1029ded",
              "status": "affected",
              "version": "26fc6c7f02cb26c39c4733de3dbc3c0646fc1074",
              "versionType": "git"
            },
            {
              "lessThan": "3eca2c42daa4659965db6817479027cbc6df7899",
              "status": "affected",
              "version": "26fc6c7f02cb26c39c4733de3dbc3c0646fc1074",
              "versionType": "git"
            },
            {
              "lessThan": "54423649bc0ed464b75807a7cf2857a5871f738f",
              "status": "affected",
              "version": "26fc6c7f02cb26c39c4733de3dbc3c0646fc1074",
              "versionType": "git"
            },
            {
              "lessThan": "f444ecd3f57f4ba5090fe8b6756933e37de4226e",
              "status": "affected",
              "version": "26fc6c7f02cb26c39c4733de3dbc3c0646fc1074",
              "versionType": "git"
            },
            {
              "lessThan": "db836b97464d44340b568e041fd24602858713f7",
              "status": "affected",
              "version": "26fc6c7f02cb26c39c4733de3dbc3c0646fc1074",
              "versionType": "git"
            },
            {
              "lessThan": "55904086041ba4ee4070187b36590f8f8d6df4cd",
              "status": "affected",
              "version": "26fc6c7f02cb26c39c4733de3dbc3c0646fc1074",
              "versionType": "git"
            },
            {
              "lessThan": "996419e0594abb311fb958553809f24f38e7abbe",
              "status": "affected",
              "version": "26fc6c7f02cb26c39c4733de3dbc3c0646fc1074",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/nfc/st21nfca/se.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.0"
            },
            {
              "lessThan": "4.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.318",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.283",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.247",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.198",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.122",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.47",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.17.*",
              "status": "unaffected",
              "version": "5.17.15",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.18.*",
              "status": "unaffected",
              "version": "5.18.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.19",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.318",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.283",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.247",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.198",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.122",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.47",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.17.15",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18.4",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: st21nfca: fix memory leaks in EVT_TRANSACTION handling\n\nError paths do not free previously allocated memory. Add devm_kfree() to\nthose failure paths."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:35:22.157Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/593773088d615a46a42c97e01a0550d192bb7f74"
        },
        {
          "url": "https://git.kernel.org/stable/c/d221ce54ce331c1a23be71eebf57f6a088632383"
        },
        {
          "url": "https://git.kernel.org/stable/c/6fce324b530dd74750ad870699e33eeed1029ded"
        },
        {
          "url": "https://git.kernel.org/stable/c/3eca2c42daa4659965db6817479027cbc6df7899"
        },
        {
          "url": "https://git.kernel.org/stable/c/54423649bc0ed464b75807a7cf2857a5871f738f"
        },
        {
          "url": "https://git.kernel.org/stable/c/f444ecd3f57f4ba5090fe8b6756933e37de4226e"
        },
        {
          "url": "https://git.kernel.org/stable/c/db836b97464d44340b568e041fd24602858713f7"
        },
        {
          "url": "https://git.kernel.org/stable/c/55904086041ba4ee4070187b36590f8f8d6df4cd"
        },
        {
          "url": "https://git.kernel.org/stable/c/996419e0594abb311fb958553809f24f38e7abbe"
        }
      ],
      "title": "nfc: st21nfca: fix memory leaks in EVT_TRANSACTION handling",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49331",
    "datePublished": "2025-02-26T02:10:51.040Z",
    "dateReserved": "2025-02-26T02:08:31.538Z",
    "dateUpdated": "2025-10-01T19:46:55.618Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

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.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…