CVE-2022-50656 (GCVE-0-2022-50656)
Vulnerability from cvelistv5
Published
2025-12-09 00:00
Modified
2026-08-05 08:59
Summary
In the Linux kernel, the following vulnerability has been resolved: nfc: pn533: Clear nfc_target before being used Fix a slab-out-of-bounds read that occurs in nla_put() called from nfc_genl_send_target() when target->sensb_res_len, which is duplicated from an nfc_target in pn533, is too large as the nfc_target is not properly initialized and retains garbage values. Clear nfc_targets with memset() before they are used. Found by a modified version of syzkaller. BUG: KASAN: slab-out-of-bounds in nla_put Call Trace: memcpy nla_put nfc_genl_dump_targets genl_lock_dumpit netlink_dump __netlink_dump_start genl_family_rcv_msg_dumpit genl_rcv_msg netlink_rcv_skb genl_rcv netlink_unicast netlink_sendmsg sock_sendmsg ____sys_sendmsg ___sys_sendmsg __sys_sendmsg do_syscall_64
Impacted products
Vendor Product Version
Linux Linux Version: 361f3cb7f9cfdb82c80926d0e7843c098c034545
Version: 361f3cb7f9cfdb82c80926d0e7843c098c034545
Version: 361f3cb7f9cfdb82c80926d0e7843c098c034545
Version: 361f3cb7f9cfdb82c80926d0e7843c098c034545
Version: 361f3cb7f9cfdb82c80926d0e7843c098c034545
Version: 361f3cb7f9cfdb82c80926d0e7843c098c034545
Version: 361f3cb7f9cfdb82c80926d0e7843c098c034545
Version: 361f3cb7f9cfdb82c80926d0e7843c098c034545
Version: 361f3cb7f9cfdb82c80926d0e7843c098c034545
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/nfc/pn533/pn533.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "9da4a0411f3455e3885831d0758bee3e3d565bbc",
              "status": "affected",
              "version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
              "versionType": "git"
            },
            {
              "lessThan": "61a7e15d55fae329a245535c3bac494e401005b8",
              "status": "affected",
              "version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
              "versionType": "git"
            },
            {
              "lessThan": "bef2f478513e7367ef3b05441f6afca981de29be",
              "status": "affected",
              "version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
              "versionType": "git"
            },
            {
              "lessThan": "8bddef54cbe9ede5ac7478f1e1e968fcfe7e6f03",
              "status": "affected",
              "version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
              "versionType": "git"
            },
            {
              "lessThan": "aea9e64dec2cc6cd742e07ecd4e6236fc76b389b",
              "status": "affected",
              "version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
              "versionType": "git"
            },
            {
              "lessThan": "aae9c24ebd901f482e6c88b6f9e0c80dc5b536d6",
              "status": "affected",
              "version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
              "versionType": "git"
            },
            {
              "lessThan": "755019e37815a66bb0a23893debbd3dd640ccbd3",
              "status": "affected",
              "version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
              "versionType": "git"
            },
            {
              "lessThan": "e491285b4d08884b622638be8e4961eb43b0af64",
              "status": "affected",
              "version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
              "versionType": "git"
            },
            {
              "lessThan": "9f28157778ede0d4f183f7ab3b46995bb400abbe",
              "status": "affected",
              "version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/nfc/pn533/pn533.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.3"
            },
            {
              "lessThan": "3.3",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.337",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.303",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.270",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.229",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.86",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.337",
                  "versionStartIncluding": "3.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.303",
                  "versionStartIncluding": "3.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.270",
                  "versionStartIncluding": "3.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.229",
                  "versionStartIncluding": "3.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "3.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.86",
                  "versionStartIncluding": "3.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.16",
                  "versionStartIncluding": "3.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.2",
                  "versionStartIncluding": "3.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "3.3",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: pn533: Clear nfc_target before being used\n\nFix a slab-out-of-bounds read that occurs in nla_put() called from\nnfc_genl_send_target() when target-\u003esensb_res_len, which is duplicated\nfrom an nfc_target in pn533, is too large as the nfc_target is not\nproperly initialized and retains garbage values. Clear nfc_targets with\nmemset() before they are used.\n\nFound by a modified version of syzkaller.\n\nBUG: KASAN: slab-out-of-bounds in nla_put\nCall Trace:\n memcpy\n nla_put\n nfc_genl_dump_targets\n genl_lock_dumpit\n netlink_dump\n __netlink_dump_start\n genl_family_rcv_msg_dumpit\n genl_rcv_msg\n netlink_rcv_skb\n genl_rcv\n netlink_unicast\n netlink_sendmsg\n sock_sendmsg\n ____sys_sendmsg\n ___sys_sendmsg\n __sys_sendmsg\n do_syscall_64"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.1,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:A - The bug is triggered when a PN533 reader completes NFC-DEP JumpDep against a peer in RF range (poll_dep or dep_link_up), so exploitation is via the NFC adjacent segment, consistent with other NFC/Bluetooth protocol bugs.\nAC:L - Once the reader is polling for NFC-DEP, a peer that successfully answers JumpDep reliably creates the poisoned target and a subsequent target dump reliably exercises the OOB read; no attacker-uncontrollable race or rare config is required.\nPR:N - An adjacent NFC peer needs no host credentials; START_POLL/DEV_UP are performed by the system\u0027s NFC stack, while NFC_CMD_GET_TARGET itself has no GENL_ADMIN_PERM, so the attacker requires no privileges.\nUI:N - No victim user action is required beyond normal NFC operation; a polling reader plus an in-range DEP peer and an automatic or local target dump are sufficient.\nS:U - Impact is confined to the host kernel\u0027s memory confidentiality and availability; there is no VM escape, IOMMU bypass, or other cross-authority boundary crossing.\nC:H - Garbage sensb_res_len/sensf_res_len/nfcid2_len (u8, up to 255) drive nla_put() to copy far past the 76-byte kmemdup\u0027d nfc_target into adjacent slab memory and return it to userspace over netlink, enabling a substantial kernel heap info leak.\nI:N - The defect is an out-of-bounds read during netlink serialization only; lengths are never used for writes, so there is no memory corruption write primitive or integrity impact.\nA:H - A large slab OOB read past the allocated nfc_target can touch unmapped memory beyond the slab object/page and cause a kernel oops, matching KASAN\u0027s slab-out-of-bounds report on the dump path."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:59:15.998Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/9da4a0411f3455e3885831d0758bee3e3d565bbc"
        },
        {
          "url": "https://git.kernel.org/stable/c/61a7e15d55fae329a245535c3bac494e401005b8"
        },
        {
          "url": "https://git.kernel.org/stable/c/bef2f478513e7367ef3b05441f6afca981de29be"
        },
        {
          "url": "https://git.kernel.org/stable/c/8bddef54cbe9ede5ac7478f1e1e968fcfe7e6f03"
        },
        {
          "url": "https://git.kernel.org/stable/c/aea9e64dec2cc6cd742e07ecd4e6236fc76b389b"
        },
        {
          "url": "https://git.kernel.org/stable/c/aae9c24ebd901f482e6c88b6f9e0c80dc5b536d6"
        },
        {
          "url": "https://git.kernel.org/stable/c/755019e37815a66bb0a23893debbd3dd640ccbd3"
        },
        {
          "url": "https://git.kernel.org/stable/c/e491285b4d08884b622638be8e4961eb43b0af64"
        },
        {
          "url": "https://git.kernel.org/stable/c/9f28157778ede0d4f183f7ab3b46995bb400abbe"
        }
      ],
      "title": "nfc: pn533: Clear nfc_target before being used",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50656",
    "datePublished": "2025-12-09T00:00:31.691Z",
    "dateReserved": "2025-12-08T23:57:43.372Z",
    "dateUpdated": "2026-08-05T08:59:15.998Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


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…