CVE-2022-50854 (GCVE-0-2022-50854)

Vulnerability from cvelistv5 – Published: 2025-12-30 12:15 – Updated: 2026-05-11 19:26
VLAI
Title
nfc: virtual_ncidev: Fix memory leak in virtual_nci_send()
Summary
In the Linux kernel, the following vulnerability has been resolved: nfc: virtual_ncidev: Fix memory leak in virtual_nci_send() skb should be free in virtual_nci_send(), otherwise kmemleak will report memleak. Steps for reproduction (simulated in qemu): cd tools/testing/selftests/nci make ./nci_dev BUG: memory leak unreferenced object 0xffff888107588000 (size 208): comm "nci_dev", pid 206, jiffies 4294945376 (age 368.248s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<000000008d94c8fd>] __alloc_skb+0x1da/0x290 [<00000000278bc7f8>] nci_send_cmd+0xa3/0x350 [<0000000081256a22>] nci_reset_req+0x6b/0xa0 [<000000009e721112>] __nci_request+0x90/0x250 [<000000005d556e59>] nci_dev_up+0x217/0x5b0 [<00000000e618ce62>] nfc_dev_up+0x114/0x220 [<00000000981e226b>] nfc_genl_dev_up+0x94/0xe0 [<000000009bb03517>] genl_family_rcv_msg_doit.isra.14+0x228/0x2d0 [<00000000b7f8c101>] genl_rcv_msg+0x35c/0x640 [<00000000c94075ff>] netlink_rcv_skb+0x11e/0x350 [<00000000440cfb1e>] genl_rcv+0x24/0x40 [<0000000062593b40>] netlink_unicast+0x43f/0x640 [<000000001d0b13cc>] netlink_sendmsg+0x73a/0xbf0 [<000000003272487f>] __sys_sendto+0x324/0x370 [<00000000ef9f1747>] __x64_sys_sendto+0xdd/0x1b0 [<000000001e437841>] do_syscall_64+0x3f/0x90
Severity
No CVSS data available.
Assigner
Linux CNA under the mitre root
CNA scorecard D 53/100 over 7067 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: e624e6c3e777fb3dfed036b9da4d433aee3608a5 , < 88e879c9f59511174ef0ab1a3c9c83e2dbf8a213 (git)
Affected: e624e6c3e777fb3dfed036b9da4d433aee3608a5 , < 2c46a9a5f0b1c7341aa67667801079f3ff571678 (git)
Affected: e624e6c3e777fb3dfed036b9da4d433aee3608a5 , < e840d8f4a1b323973052a1af5ad4edafcde8ae3d (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.12
Unaffected: 0 , < 5.12 (semver)
Unaffected: 5.15.77 , ≤ 5.15.* (semver)
Unaffected: 6.0.7 , ≤ 6.0.* (semver)
Unaffected: 6.1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/nfc/virtual_ncidev.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "88e879c9f59511174ef0ab1a3c9c83e2dbf8a213",
              "status": "affected",
              "version": "e624e6c3e777fb3dfed036b9da4d433aee3608a5",
              "versionType": "git"
            },
            {
              "lessThan": "2c46a9a5f0b1c7341aa67667801079f3ff571678",
              "status": "affected",
              "version": "e624e6c3e777fb3dfed036b9da4d433aee3608a5",
              "versionType": "git"
            },
            {
              "lessThan": "e840d8f4a1b323973052a1af5ad4edafcde8ae3d",
              "status": "affected",
              "version": "e624e6c3e777fb3dfed036b9da4d433aee3608a5",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/nfc/virtual_ncidev.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.12"
            },
            {
              "lessThan": "5.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.77",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.7",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.77",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.7",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: virtual_ncidev: Fix memory leak in virtual_nci_send()\n\nskb should be free in virtual_nci_send(), otherwise kmemleak will report\nmemleak.\n\nSteps for reproduction (simulated in qemu):\n\tcd tools/testing/selftests/nci\n\tmake\n\t./nci_dev\n\nBUG: memory leak\nunreferenced object 0xffff888107588000 (size 208):\n  comm \"nci_dev\", pid 206, jiffies 4294945376 (age 368.248s)\n  hex dump (first 32 bytes):\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n  backtrace:\n    [\u003c000000008d94c8fd\u003e] __alloc_skb+0x1da/0x290\n    [\u003c00000000278bc7f8\u003e] nci_send_cmd+0xa3/0x350\n    [\u003c0000000081256a22\u003e] nci_reset_req+0x6b/0xa0\n    [\u003c000000009e721112\u003e] __nci_request+0x90/0x250\n    [\u003c000000005d556e59\u003e] nci_dev_up+0x217/0x5b0\n    [\u003c00000000e618ce62\u003e] nfc_dev_up+0x114/0x220\n    [\u003c00000000981e226b\u003e] nfc_genl_dev_up+0x94/0xe0\n    [\u003c000000009bb03517\u003e] genl_family_rcv_msg_doit.isra.14+0x228/0x2d0\n    [\u003c00000000b7f8c101\u003e] genl_rcv_msg+0x35c/0x640\n    [\u003c00000000c94075ff\u003e] netlink_rcv_skb+0x11e/0x350\n    [\u003c00000000440cfb1e\u003e] genl_rcv+0x24/0x40\n    [\u003c0000000062593b40\u003e] netlink_unicast+0x43f/0x640\n    [\u003c000000001d0b13cc\u003e] netlink_sendmsg+0x73a/0xbf0\n    [\u003c000000003272487f\u003e] __sys_sendto+0x324/0x370\n    [\u003c00000000ef9f1747\u003e] __x64_sys_sendto+0xdd/0x1b0\n    [\u003c000000001e437841\u003e] do_syscall_64+0x3f/0x90"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T19:26:24.301Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/88e879c9f59511174ef0ab1a3c9c83e2dbf8a213"
        },
        {
          "url": "https://git.kernel.org/stable/c/2c46a9a5f0b1c7341aa67667801079f3ff571678"
        },
        {
          "url": "https://git.kernel.org/stable/c/e840d8f4a1b323973052a1af5ad4edafcde8ae3d"
        }
      ],
      "title": "nfc: virtual_ncidev: Fix memory leak in virtual_nci_send()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50854",
    "datePublished": "2025-12-30T12:15:29.792Z",
    "dateReserved": "2025-12-30T12:06:07.134Z",
    "dateUpdated": "2026-05-11T19:26:24.301Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-50854",
      "date": "2026-10-26",
      "epss": "0.00199",
      "percentile": "0.09586"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/nfc/virtual_ncidev.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "88e879c9f59511174ef0ab1a3c9c83e2dbf8a213",
                    "status": "affected",
                    "version": "e624e6c3e777fb3dfed036b9da4d433aee3608a5",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "2c46a9a5f0b1c7341aa67667801079f3ff571678",
                    "status": "affected",
                    "version": "e624e6c3e777fb3dfed036b9da4d433aee3608a5",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e840d8f4a1b323973052a1af5ad4edafcde8ae3d",
                    "status": "affected",
                    "version": "e624e6c3e777fb3dfed036b9da4d433aee3608a5",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/nfc/virtual_ncidev.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.12"
                  },
                  {
                    "lessThan": "5.12",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.77",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.0.*",
                    "status": "unaffected",
                    "version": "6.0.7",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "6.1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: virtual_ncidev: Fix memory leak in virtual_nci_send()\n\nskb should be free in virtual_nci_send(), otherwise kmemleak will report\nmemleak.\n\nSteps for reproduction (simulated in qemu):\n\tcd tools/testing/selftests/nci\n\tmake\n\t./nci_dev\n\nBUG: memory leak\nunreferenced object 0xffff888107588000 (size 208):\n  comm \"nci_dev\", pid 206, jiffies 4294945376 (age 368.248s)\n  hex dump (first 32 bytes):\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n  backtrace:\n    [\u003c000000008d94c8fd\u003e] __alloc_skb+0x1da/0x290\n    [\u003c00000000278bc7f8\u003e] nci_send_cmd+0xa3/0x350\n    [\u003c0000000081256a22\u003e] nci_reset_req+0x6b/0xa0\n    [\u003c000000009e721112\u003e] __nci_request+0x90/0x250\n    [\u003c000000005d556e59\u003e] nci_dev_up+0x217/0x5b0\n    [\u003c00000000e618ce62\u003e] nfc_dev_up+0x114/0x220\n    [\u003c00000000981e226b\u003e] nfc_genl_dev_up+0x94/0xe0\n    [\u003c000000009bb03517\u003e] genl_family_rcv_msg_doit.isra.14+0x228/0x2d0\n    [\u003c00000000b7f8c101\u003e] genl_rcv_msg+0x35c/0x640\n    [\u003c00000000c94075ff\u003e] netlink_rcv_skb+0x11e/0x350\n    [\u003c00000000440cfb1e\u003e] genl_rcv+0x24/0x40\n    [\u003c0000000062593b40\u003e] netlink_unicast+0x43f/0x640\n    [\u003c000000001d0b13cc\u003e] netlink_sendmsg+0x73a/0xbf0\n    [\u003c000000003272487f\u003e] __sys_sendto+0x324/0x370\n    [\u003c00000000ef9f1747\u003e] __x64_sys_sendto+0xdd/0x1b0\n    [\u003c000000001e437841\u003e] do_syscall_64+0x3f/0x90"
          }
        ],
        "id": "CVE-2022-50854",
        "lastModified": "2026-06-17T05:24:18.110",
        "metrics": {},
        "published": "2025-12-30T13:16:00.117",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/2c46a9a5f0b1c7341aa67667801079f3ff571678"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/88e879c9f59511174ef0ab1a3c9c83e2dbf8a213"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e840d8f4a1b323973052a1af5ad4edafcde8ae3d"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Deferred"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:28:23+00:00",
      "cve": "CVE-2022-50854",
      "id": "CVE-2022-50854",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: nfc: virtual_ncidev: Fix memory leak in virtual_nci_send()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-50854.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.