{"id":"CVE-2022-50834","summary":"nfc: Fix potential resource leaks","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: Fix potential resource leaks\n\nnfc_get_device() take reference for the device, add missing\nnfc_put_device() to release it when not need anymore.\nAlso fix the style warnning by use error EOPNOTSUPP instead of\nENOTSUPP.","modified":"2026-04-02T08:28:46.985976Z","published":"2025-12-30T12:10:55.025Z","related":["SUSE-SU-2026:0263-1","SUSE-SU-2026:0317-1","SUSE-SU-2026:0411-1","SUSE-SU-2026:0473-1","SUSE-SU-2026:0617-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50834.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/277f0d0a9084e7454e5532c823a7a876a7b00af7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a743128fca394a43425020a4f287d3168d94d04f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b32f6bef248562bb5191ada527717ea50b319466"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b63bc2db244c1b57e36f16ea5f2a1becda413f68"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d1d912e7f82d7216ba4e266048ec1d1f5ea93839"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d8e410315ad393b23520b5db0706be853589c548"},{"type":"WEB","url":"https://git.kernel.org/stable/c/df49908f3c52d211aea5e2a14a93bbe67a2cb3af"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e0f5c962c066e769c187f037fedc883f8abd4e82"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50834.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50834"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5ce3f32b5264b337bfd13a780452a17705307725"},{"fixed":"277f0d0a9084e7454e5532c823a7a876a7b00af7"},{"fixed":"d1d912e7f82d7216ba4e266048ec1d1f5ea93839"},{"fixed":"d8e410315ad393b23520b5db0706be853589c548"},{"fixed":"e0f5c962c066e769c187f037fedc883f8abd4e82"},{"fixed":"b63bc2db244c1b57e36f16ea5f2a1becda413f68"},{"fixed":"a743128fca394a43425020a4f287d3168d94d04f"},{"fixed":"b32f6bef248562bb5191ada527717ea50b319466"},{"fixed":"df49908f3c52d211aea5e2a14a93bbe67a2cb3af"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50834.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.13.0"},{"fixed":"4.14.303"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.229"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.87"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.19"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50834.json"}}],"schema_version":"1.7.5"}