# CVE-2022-50834: nfc: Fix potential resource leaks

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-02)
- Published: 2025-12-30T12:10:55.025Z
- Modified: 2026-06-17T05:24:16.037Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

nfc: Fix potential resource leaks

nfc_get_device() take reference for the device, add missing
nfc_put_device() to release it when not need anymore.
Also fix the style warnning by use error EOPNOTSUPP instead of
ENOTSUPP.

(As written by CVE List.)

## Affected

- Linux Linux: from 5ce3f32b5264b337bfd13a780452a17705307725 before 277f0d0a9084e7454e5532c823a7a876a7b00af7; from 5ce3f32b5264b337bfd13a780452a17705307725 before d1d912e7f82d7216ba4e266048ec1d1f5ea93839; from 5ce3f32b5264b337bfd13a780452a17705307725 before d8e410315ad393b23520b5db0706be853589c548; from 5ce3f32b5264b337bfd13a780452a17705307725 before e0f5c962c066e769c187f037fedc883f8abd4e82; from 5ce3f32b5264b337bfd13a780452a17705307725 before b63bc2db244c1b57e36f16ea5f2a1becda413f68; from 5ce3f32b5264b337bfd13a780452a17705307725 before a743128fca394a43425020a4f287d3168d94d04f; from 5ce3f32b5264b337bfd13a780452a17705307725 before b32f6bef248562bb5191ada527717ea50b319466; from 5ce3f32b5264b337bfd13a780452a17705307725 before df49908f3c52d211aea5e2a14a93bbe67a2cb3af; 3.13 (not affected: before 3.13; from 4.14.303 up to 4.14.*; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.87 up to 5.15.*; from 6.0.19 up to 6.0.*; from 6.1.5 up to 6.1.*; from 6.2 up to *)

## References

- <https://git.kernel.org/stable/c/277f0d0a9084e7454e5532c823a7a876a7b00af7>
- <https://git.kernel.org/stable/c/d1d912e7f82d7216ba4e266048ec1d1f5ea93839>
- <https://git.kernel.org/stable/c/d8e410315ad393b23520b5db0706be853589c548>
- <https://git.kernel.org/stable/c/e0f5c962c066e769c187f037fedc883f8abd4e82>
- <https://git.kernel.org/stable/c/b63bc2db244c1b57e36f16ea5f2a1becda413f68>
- <https://git.kernel.org/stable/c/a743128fca394a43425020a4f287d3168d94d04f>
- <https://git.kernel.org/stable/c/b32f6bef248562bb5191ada527717ea50b319466>
- <https://git.kernel.org/stable/c/df49908f3c52d211aea5e2a14a93bbe67a2cb3af>

## Sources

- CVE List: [CVE-2022-50834](https://www.cve.org/CVERecord?id=CVE-2022-50834), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50834](https://nvd.nist.gov/vuln/detail/CVE-2022-50834), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50834 · Whole record: https://cve.day/CVE-2022-50834.json · Rebuilt by cve.day 2026-11-25T22:58:21.374Z
