Skip to content
Heist/ feed
Back to feed
UnratedFix available

nfc: Fix potential resource leaks

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.14.303, 4.19.270, 5.10.163, 5.15.87, 5.4.229, 6.0.19, 6.1.5
CVEs
CVE-2022-50834
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:04 UTC · Revision 1

Source evidence

nfc: Fix potential resource leaks

core-osv · Original source

Published 30 Dec 2025, 12:10 UTC

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.

osv:CVE-2022-50834

Kernel

Fixed versions: 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.87, 6.0.19, 6.1.5

Complete source record
{
  "id": "d157e6e34f4903bca26063d7c158e5176fdeb8a06043eab8f97784911c996af7",
  "url": "https://osv.dev/vulnerability/CVE-2022-50834",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "nfc: Fix potential resource leaks",
    "summary": "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.",
    "evidence": "osv:CVE-2022-50834",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.14.303",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.19.270",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.229",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.163",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.87",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.0.19",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-50834",
      "aliases": [
        "CVE-2022-50834"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "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"
          }
        },
        {
          "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"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50834.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.188456339Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/277f0d0a9084e7454e5532c823a7a876a7b00af7",
        "https://git.kernel.org/stable/c/a743128fca394a43425020a4f287d3168d94d04f",
        "https://git.kernel.org/stable/c/b32f6bef248562bb5191ada527717ea50b319466",
        "https://git.kernel.org/stable/c/b63bc2db244c1b57e36f16ea5f2a1becda413f68",
        "https://git.kernel.org/stable/c/d1d912e7f82d7216ba4e266048ec1d1f5ea93839",
        "https://git.kernel.org/stable/c/d8e410315ad393b23520b5db0706be853589c548",
        "https://git.kernel.org/stable/c/df49908f3c52d211aea5e2a14a93bbe67a2cb3af",
        "https://git.kernel.org/stable/c/e0f5c962c066e769c187f037fedc883f8abd4e82",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50834.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-50834",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50834.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-50834",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 504480,
  "published_at": "2025-12-30T12:10:55.025+00:00"
}