CVE-2022-50656

nfc: pn533: Clear nfc_target before being used

State
Published
Severity
8.1 High
Published
Dec 9, 2025
Updated
Aug 5, 2026
Reserved
Dec 8, 2025

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.18.1 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 361f3cb7f9cfdb82c80926d0e7843c098c034545 to before 9da4a0411f3455e3885831d0758bee3e3d565bbcAffected
  • 361f3cb7f9cfdb82c80926d0e7843c098c034545 to before 61a7e15d55fae329a245535c3bac494e401005b8Affected
  • 361f3cb7f9cfdb82c80926d0e7843c098c034545 to before bef2f478513e7367ef3b05441f6afca981de29beAffected
  • 361f3cb7f9cfdb82c80926d0e7843c098c034545 to before 8bddef54cbe9ede5ac7478f1e1e968fcfe7e6f03Affected
  • 361f3cb7f9cfdb82c80926d0e7843c098c034545 to before aea9e64dec2cc6cd742e07ecd4e6236fc76b389bAffected
  • 361f3cb7f9cfdb82c80926d0e7843c098c034545 to before aae9c24ebd901f482e6c88b6f9e0c80dc5b536d6Affected
  • 361f3cb7f9cfdb82c80926d0e7843c098c034545 to before 755019e37815a66bb0a23893debbd3dd640ccbd3Affected
  • 361f3cb7f9cfdb82c80926d0e7843c098c034545 to before e491285b4d08884b622638be8e4961eb43b0af64Affected
  • 361f3cb7f9cfdb82c80926d0e7843c098c034545 to before 9f28157778ede0d4f183f7ab3b46995bb400abbeAffected
LinuxLinux
  • 3.3Affected
  • before 3.3Not affected
  • 4.9.337 through 4.9.*Not affected
  • 4.14.303 through 4.14.*Not affected
  • 4.19.270 through 4.19.*Not affected
  • 5.4.229 through 5.4.*Not affected
  • 5.10.163 through 5.10.*Not affected
  • 5.15.86 through 5.15.*Not affected
  • 6.0.16 through 6.0.*Not affected
  • 6.1.2 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.