CVE-2022-50656

nfc: pn533: Clear nfc_target before being used

8.1 high EPSS 0.37%

Published 9 Dec 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2022-50656

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50656 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Severity (CVSS)

8.1 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Attack vector
adjacent: the attacker has to be on the same local network or link
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.37%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 32.8% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 361f3cb7f9cfdb82c80926d0e7843c098c034545, before 9da4a0411f3455e3885831d0758bee3e3d565bbc
affected from 361f3cb7f9cfdb82c80926d0e7843c098c034545, before 61a7e15d55fae329a245535c3bac494e401005b8
affected from 361f3cb7f9cfdb82c80926d0e7843c098c034545, before bef2f478513e7367ef3b05441f6afca981de29be
affected from 361f3cb7f9cfdb82c80926d0e7843c098c034545, before 8bddef54cbe9ede5ac7478f1e1e968fcfe7e6f03
affected from 361f3cb7f9cfdb82c80926d0e7843c098c034545, before aea9e64dec2cc6cd742e07ecd4e6236fc76b389b
affected from 361f3cb7f9cfdb82c80926d0e7843c098c034545, before aae9c24ebd901f482e6c88b6f9e0c80dc5b536d6
affected from 361f3cb7f9cfdb82c80926d0e7843c098c034545, before 755019e37815a66bb0a23893debbd3dd640ccbd3
affected from 361f3cb7f9cfdb82c80926d0e7843c098c034545, before e491285b4d08884b622638be8e4961eb43b0af64
affected from 361f3cb7f9cfdb82c80926d0e7843c098c034545, before 9f28157778ede0d4f183f7ab3b46995bb400abbe
Other versions: unaffected
Linux
affected 3.3
unaffected before 3.3
unaffected from 4.9.337 up to and including 4.9.*
unaffected from 4.14.303 up to and including 4.14.*
unaffected from 4.19.270 up to and including 4.19.*
unaffected from 5.4.229 up to and including 5.4.*
unaffected from 5.10.163 up to and including 5.10.*
unaffected from 5.15.86 up to and including 5.15.*
unaffected from 6.0.16 up to and including 6.0.*
unaffected from 6.1.2 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50656 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50656

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50656
trivy image --scanners vuln IMAGE | grep CVE-2022-50656

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50656 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.