CVE-2022-50656 (GCVE-0-2022-50656)
Vulnerability from cvelistv5 – Published: 2025-12-09 00:00 – Updated: 2025-12-09 00:00
VLAI?
Title
nfc: pn533: Clear nfc_target before being used
Summary
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 ?
No CVSS data available.
Assigner
References
Impacted products
| Vendor | Product | Version | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux |
Affected:
361f3cb7f9cfdb82c80926d0e7843c098c034545 , < 9da4a0411f3455e3885831d0758bee3e3d565bbc
(git)
Affected: 361f3cb7f9cfdb82c80926d0e7843c098c034545 , < 61a7e15d55fae329a245535c3bac494e401005b8 (git) Affected: 361f3cb7f9cfdb82c80926d0e7843c098c034545 , < bef2f478513e7367ef3b05441f6afca981de29be (git) Affected: 361f3cb7f9cfdb82c80926d0e7843c098c034545 , < 8bddef54cbe9ede5ac7478f1e1e968fcfe7e6f03 (git) Affected: 361f3cb7f9cfdb82c80926d0e7843c098c034545 , < aea9e64dec2cc6cd742e07ecd4e6236fc76b389b (git) Affected: 361f3cb7f9cfdb82c80926d0e7843c098c034545 , < aae9c24ebd901f482e6c88b6f9e0c80dc5b536d6 (git) Affected: 361f3cb7f9cfdb82c80926d0e7843c098c034545 , < 755019e37815a66bb0a23893debbd3dd640ccbd3 (git) Affected: 361f3cb7f9cfdb82c80926d0e7843c098c034545 , < e491285b4d08884b622638be8e4961eb43b0af64 (git) Affected: 361f3cb7f9cfdb82c80926d0e7843c098c034545 , < 9f28157778ede0d4f183f7ab3b46995bb400abbe (git) |
|||||||
|
|||||||||
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/nfc/pn533/pn533.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "9da4a0411f3455e3885831d0758bee3e3d565bbc",
"status": "affected",
"version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
"versionType": "git"
},
{
"lessThan": "61a7e15d55fae329a245535c3bac494e401005b8",
"status": "affected",
"version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
"versionType": "git"
},
{
"lessThan": "bef2f478513e7367ef3b05441f6afca981de29be",
"status": "affected",
"version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
"versionType": "git"
},
{
"lessThan": "8bddef54cbe9ede5ac7478f1e1e968fcfe7e6f03",
"status": "affected",
"version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
"versionType": "git"
},
{
"lessThan": "aea9e64dec2cc6cd742e07ecd4e6236fc76b389b",
"status": "affected",
"version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
"versionType": "git"
},
{
"lessThan": "aae9c24ebd901f482e6c88b6f9e0c80dc5b536d6",
"status": "affected",
"version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
"versionType": "git"
},
{
"lessThan": "755019e37815a66bb0a23893debbd3dd640ccbd3",
"status": "affected",
"version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
"versionType": "git"
},
{
"lessThan": "e491285b4d08884b622638be8e4961eb43b0af64",
"status": "affected",
"version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
"versionType": "git"
},
{
"lessThan": "9f28157778ede0d4f183f7ab3b46995bb400abbe",
"status": "affected",
"version": "361f3cb7f9cfdb82c80926d0e7843c098c034545",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/nfc/pn533/pn533.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "3.3"
},
{
"lessThan": "3.3",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "4.9.*",
"status": "unaffected",
"version": "4.9.337",
"versionType": "semver"
},
{
"lessThanOrEqual": "4.14.*",
"status": "unaffected",
"version": "4.14.303",
"versionType": "semver"
},
{
"lessThanOrEqual": "4.19.*",
"status": "unaffected",
"version": "4.19.270",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"version": "5.4.229",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.163",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.86",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.0.*",
"status": "unaffected",
"version": "6.0.16",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.2",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "6.2",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.9.337",
"versionStartIncluding": "3.3",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.14.303",
"versionStartIncluding": "3.3",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.19.270",
"versionStartIncluding": "3.3",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.4.229",
"versionStartIncluding": "3.3",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.10.163",
"versionStartIncluding": "3.3",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.15.86",
"versionStartIncluding": "3.3",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.0.16",
"versionStartIncluding": "3.3",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.1.2",
"versionStartIncluding": "3.3",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.2",
"versionStartIncluding": "3.3",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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-\u003esensb_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"
}
],
"providerMetadata": {
"dateUpdated": "2025-12-09T00:00:31.691Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/9da4a0411f3455e3885831d0758bee3e3d565bbc"
},
{
"url": "https://git.kernel.org/stable/c/61a7e15d55fae329a245535c3bac494e401005b8"
},
{
"url": "https://git.kernel.org/stable/c/bef2f478513e7367ef3b05441f6afca981de29be"
},
{
"url": "https://git.kernel.org/stable/c/8bddef54cbe9ede5ac7478f1e1e968fcfe7e6f03"
},
{
"url": "https://git.kernel.org/stable/c/aea9e64dec2cc6cd742e07ecd4e6236fc76b389b"
},
{
"url": "https://git.kernel.org/stable/c/aae9c24ebd901f482e6c88b6f9e0c80dc5b536d6"
},
{
"url": "https://git.kernel.org/stable/c/755019e37815a66bb0a23893debbd3dd640ccbd3"
},
{
"url": "https://git.kernel.org/stable/c/e491285b4d08884b622638be8e4961eb43b0af64"
},
{
"url": "https://git.kernel.org/stable/c/9f28157778ede0d4f183f7ab3b46995bb400abbe"
}
],
"title": "nfc: pn533: Clear nfc_target before being used",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2022-50656",
"datePublished": "2025-12-09T00:00:31.691Z",
"dateReserved": "2025-12-08T23:57:43.372Z",
"dateUpdated": "2025-12-09T00:00:31.691Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"nvd": "{\"cve\":{\"id\":\"CVE-2022-50656\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-09T01:16:48.600\",\"lastModified\":\"2025-12-09T18:37:13.640\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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-\u003esensb_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\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/61a7e15d55fae329a245535c3bac494e401005b8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/755019e37815a66bb0a23893debbd3dd640ccbd3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8bddef54cbe9ede5ac7478f1e1e968fcfe7e6f03\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9da4a0411f3455e3885831d0758bee3e3d565bbc\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9f28157778ede0d4f183f7ab3b46995bb400abbe\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/aae9c24ebd901f482e6c88b6f9e0c80dc5b536d6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/aea9e64dec2cc6cd742e07ecd4e6236fc76b389b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/bef2f478513e7367ef3b05441f6afca981de29be\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e491285b4d08884b622638be8e4961eb43b0af64\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…