# CVE-2022-50656: nfc: pn533: Clear nfc_target before being used

- Severity: High 8.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2025-12-09T00:00:31.691Z
- Modified: 2026-08-05T08:59:15.998Z
- Assigned by: Linux

## Description

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

(As written by CVE List.)

## Affected

- Linux Linux: from 361f3cb7f9cfdb82c80926d0e7843c098c034545 before 9da4a0411f3455e3885831d0758bee3e3d565bbc; from 361f3cb7f9cfdb82c80926d0e7843c098c034545 before 61a7e15d55fae329a245535c3bac494e401005b8; from 361f3cb7f9cfdb82c80926d0e7843c098c034545 before bef2f478513e7367ef3b05441f6afca981de29be; from 361f3cb7f9cfdb82c80926d0e7843c098c034545 before 8bddef54cbe9ede5ac7478f1e1e968fcfe7e6f03; from 361f3cb7f9cfdb82c80926d0e7843c098c034545 before aea9e64dec2cc6cd742e07ecd4e6236fc76b389b; from 361f3cb7f9cfdb82c80926d0e7843c098c034545 before aae9c24ebd901f482e6c88b6f9e0c80dc5b536d6; from 361f3cb7f9cfdb82c80926d0e7843c098c034545 before 755019e37815a66bb0a23893debbd3dd640ccbd3; from 361f3cb7f9cfdb82c80926d0e7843c098c034545 before e491285b4d08884b622638be8e4961eb43b0af64; from 361f3cb7f9cfdb82c80926d0e7843c098c034545 before 9f28157778ede0d4f183f7ab3b46995bb400abbe; 3.3 (not affected: before 3.3; from 4.9.337 up to 4.9.*; from 4.14.303 up to 4.14.*; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)

## References

- <https://git.kernel.org/stable/c/9da4a0411f3455e3885831d0758bee3e3d565bbc>
- <https://git.kernel.org/stable/c/61a7e15d55fae329a245535c3bac494e401005b8>
- <https://git.kernel.org/stable/c/bef2f478513e7367ef3b05441f6afca981de29be>
- <https://git.kernel.org/stable/c/8bddef54cbe9ede5ac7478f1e1e968fcfe7e6f03>
- <https://git.kernel.org/stable/c/aea9e64dec2cc6cd742e07ecd4e6236fc76b389b>
- <https://git.kernel.org/stable/c/aae9c24ebd901f482e6c88b6f9e0c80dc5b536d6>
- <https://git.kernel.org/stable/c/755019e37815a66bb0a23893debbd3dd640ccbd3>
- <https://git.kernel.org/stable/c/e491285b4d08884b622638be8e4961eb43b0af64>
- <https://git.kernel.org/stable/c/9f28157778ede0d4f183f7ab3b46995bb400abbe>

## Sources

- CVE List: [CVE-2022-50656](https://www.cve.org/CVERecord?id=CVE-2022-50656), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-50656](https://nvd.nist.gov/vuln/detail/CVE-2022-50656), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-50656 · Whole record: https://cve.day/CVE-2022-50656.json · Rebuilt by cve.day 2026-11-25T22:58:21.307Z
