CVE-2022-49331
nfc: st21nfca: fix memory leaks in EVT_TRANSACTION handling
Check your servers for CVE-2022-49331
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49331 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 20.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 1 Oct 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-401 Missing Release of Memory after Effective Lifetime
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074, before 593773088d615a46a42c97e01a0550d192bb7f74 affected from 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074, before d221ce54ce331c1a23be71eebf57f6a088632383 affected from 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074, before 6fce324b530dd74750ad870699e33eeed1029ded affected from 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074, before 3eca2c42daa4659965db6817479027cbc6df7899 affected from 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074, before 54423649bc0ed464b75807a7cf2857a5871f738f affected from 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074, before f444ecd3f57f4ba5090fe8b6756933e37de4226e affected from 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074, before db836b97464d44340b568e041fd24602858713f7 affected from 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074, before 55904086041ba4ee4070187b36590f8f8d6df4cd affected from 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074, before 996419e0594abb311fb958553809f24f38e7abbe
Other versions: unaffected
|
| Linux |
affected 4.0 unaffected before 4.0 unaffected from 4.9.318 up to and including 4.9.* unaffected from 4.14.283 up to and including 4.14.* unaffected from 4.19.247 up to and including 4.19.* unaffected from 5.4.198 up to and including 5.4.* unaffected from 5.10.122 up to and including 5.10.* unaffected from 5.15.47 up to and including 5.15.* unaffected from 5.17.15 up to and including 5.17.* unaffected from 5.18.4 up to and including 5.18.* unaffected 5.19 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49331 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49331
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-49331
trivy image --scanners vuln IMAGE | grep CVE-2022-49331
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/593773088d615a46a42c97e01a0550d192bb7f74 git.kernel.org
- https://git.kernel.org/stable/c/d221ce54ce331c1a23be71eebf57f6a088632383 git.kernel.org
- https://git.kernel.org/stable/c/6fce324b530dd74750ad870699e33eeed1029ded git.kernel.org
- https://git.kernel.org/stable/c/3eca2c42daa4659965db6817479027cbc6df7899 git.kernel.org
- https://git.kernel.org/stable/c/54423649bc0ed464b75807a7cf2857a5871f738f git.kernel.org
- https://git.kernel.org/stable/c/f444ecd3f57f4ba5090fe8b6756933e37de4226e git.kernel.org
- https://git.kernel.org/stable/c/db836b97464d44340b568e041fd24602858713f7 git.kernel.org
- https://git.kernel.org/stable/c/55904086041ba4ee4070187b36590f8f8d6df4cd git.kernel.org
- https://git.kernel.org/stable/c/996419e0594abb311fb958553809f24f38e7abbe git.kernel.org
Source: the record CVE-2022-49331 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse