nfc: pn533: Clear nfc_target before being used (Linux Linux)

CVE-2022-50656
HIGH 8.1

At a glance

Source
NVD
EPSS
EPSS 0.34 % · percentile 28 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Deferred

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

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HLinux
CVSS 3.1HIGH 8.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 361f3cb7f9cfdb82c80926d0e7843c098c034545 < 9da4a0411f3455e3885831d0758bee3e3d565bbc ; affected 361f3cb7f9cfdb82c80926d0e7843c098c034545 < 61a7e15d55fae329a245535c3bac494e401005b8 ; affected 361f3cb7f9cfdb82c80926d0e7843c098c034545 < bef2f478513e7367ef3b05441f6afca981de29be ; affected 361f3cb7f9cfdb82c80926d0e7843c098c034545 < 8bddef54cbe9ede5ac7478f1e1e968fcfe7e6f03 ; affected 361f3cb7f9cfdb82c80926d0e7843c098c034545 < aea9e64dec2cc6cd742e07ecd4e6236fc76b389b ; affected 361f3cb7f9cfdb82c80926d0e7843c098c034545 < aae9c24ebd901f482e6c88b6f9e0c80dc5b536d6
Linux · Linuxaffected 3.3 ; unaffected 0 < 3.3 ; unaffected 4.9.337 ≤ 4.9.* ; unaffected 4.14.303 ≤ 4.14.* ; unaffected 4.19.270 ≤ 4.19.* ; unaffected 5.4.229 ≤ 5.4.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD