CVE-2022-50854 (GCVE-0-2022-50854)
Vulnerability from cvelistv5
Published
2025-12-30 12:15
Modified
2025-12-30 12:15
Severity ?
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
Impacted products
Vendor Product Version
Linux Linux Version: e624e6c3e777fb3dfed036b9da4d433aee3608a5
Version: e624e6c3e777fb3dfed036b9da4d433aee3608a5
Version: e624e6c3e777fb3dfed036b9da4d433aee3608a5
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": "2025-12-30T12:15:29.792Z",
        "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": "2025-12-30T12:15:29.792Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50854\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-30T13:16:00.117\",\"lastModified\":\"2025-12-30T13:16:00.117\",\"vulnStatus\":\"Received\",\"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\"}],\"metrics\":{},\"references\":[{\"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\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…