{"id":"CVE-2022-50656","aliases":["CVE-2022-50656"],"related":[],"kind":"vulnerability","state":"published","title":"nfc: pn533: Clear nfc_target before being used","summary":"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->sensb_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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->sensb_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","source":"cvelist"}],"published":"2025-12-09T00:00:31.691Z","modified":"2026-08-05T08:59:15.998Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":8.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"361f3cb7f9cfdb82c80926d0e7843c098c034545","fixed":"9da4a0411f3455e3885831d0758bee3e3d565bbc","status":"affected"},{"type":"git","introduced":"361f3cb7f9cfdb82c80926d0e7843c098c034545","fixed":"61a7e15d55fae329a245535c3bac494e401005b8","status":"affected"},{"type":"git","introduced":"361f3cb7f9cfdb82c80926d0e7843c098c034545","fixed":"bef2f478513e7367ef3b05441f6afca981de29be","status":"affected"},{"type":"git","introduced":"361f3cb7f9cfdb82c80926d0e7843c098c034545","fixed":"8bddef54cbe9ede5ac7478f1e1e968fcfe7e6f03","status":"affected"},{"type":"git","introduced":"361f3cb7f9cfdb82c80926d0e7843c098c034545","fixed":"aea9e64dec2cc6cd742e07ecd4e6236fc76b389b","status":"affected"},{"type":"git","introduced":"361f3cb7f9cfdb82c80926d0e7843c098c034545","fixed":"aae9c24ebd901f482e6c88b6f9e0c80dc5b536d6","status":"affected"},{"type":"git","introduced":"361f3cb7f9cfdb82c80926d0e7843c098c034545","fixed":"755019e37815a66bb0a23893debbd3dd640ccbd3","status":"affected"},{"type":"git","introduced":"361f3cb7f9cfdb82c80926d0e7843c098c034545","fixed":"e491285b4d08884b622638be8e4961eb43b0af64","status":"affected"},{"type":"git","introduced":"361f3cb7f9cfdb82c80926d0e7843c098c034545","fixed":"9f28157778ede0d4f183f7ab3b46995bb400abbe","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.3","status":"unaffected"},{"type":"semver","introduced":"4.9.337","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/9da4a0411f3455e3885831d0758bee3e3d565bbc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/61a7e15d55fae329a245535c3bac494e401005b8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bef2f478513e7367ef3b05441f6afca981de29be","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8bddef54cbe9ede5ac7478f1e1e968fcfe7e6f03","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aea9e64dec2cc6cd742e07ecd4e6236fc76b389b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aae9c24ebd901f482e6c88b6f9e0c80dc5b536d6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/755019e37815a66bb0a23893debbd3dd640ccbd3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e491285b4d08884b622638be8e4961eb43b0af64","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f28157778ede0d4f183f7ab3b46995bb400abbe","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50656","url":"https://www.cve.org/CVERecord?id=CVE-2022-50656","licence":"CVE Terms of Use","modified":"2026-08-05T08:59:15.998Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50656","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50656","licence":"Public domain","modified":"2026-08-04T10:18:20.420Z"}],"updatedAt":"2026-11-25T22:58:21.307Z","epss":{"score":0.00369,"percentile":0.3282,"date":"2026-12-01T12:00:22.000Z"}}