CVE-2022-50481
publishedcxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux14baf4d9c739e6e69150512d2eb23c71fffcc192 to < 96fba6fb95bdede80583c262ac185da09661f264 · 14baf4d9c739e6e69150512d2eb23c71fffcc192 to < 1ae581696b7a799afa39a664c4b721569643f58a · 14baf4d9c739e6e69150512d2eb23c71fffcc192 to < d775a1da5a52b4f4bb02f2707ba420d1bec48dbb · 14baf4d9c739e6e69150512d2eb23c71fffcc192 to < 60b2ed21a65f3f5318666ccd765c3507991370cf · 14baf4d9c739e6e69150512d2eb23c71fffcc192 to < 170e8c2d2b61e15e7f7cfeded81bc1e959a15ed8 · 14baf4d9c739e6e69150512d2eb23c71fffcc192 to < e5021bbf11b024cc65ea1e84c377df484183be4b · 14baf4d9c739e6e69150512d2eb23c71fffcc192 to < b32559ee4e6667c5c3daf4ec5454c277d1f255d2 · 14baf4d9c739e6e69150512d2eb23c71fffcc192 to < ab44c182353be101c3be9465e1d15d42130c53c4 · 14baf4d9c739e6e69150512d2eb23c71fffcc192 to < 61c80d1c3833e196256fb060382db94f24d3d9a7 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.6 (affected) · 0 to < 4.6 (unaffected · semver) · 4.9.337 through 4.9.* (unaffected · semver) · 4.14.303 through 4.14.* (unaffected · semver) · 4.19.270 through 4.19.* (unaffected · semver) · 5.4.229 through 5.4.* (unaffected · semver) · 5.10.163 through 5.10.* (unaffected · semver) · 5.15.86 through 5.15.* (unaffected · semver) · 6.0.16 through 6.0.* (unaffected · semver) · 6.1.2 through 6.1.* (unaffected · semver) · 6.2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaults390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
Show 41 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaults390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaults390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaults390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-bases390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-basex86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-devels390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgrafts390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-devels390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-mans390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-develnoarch | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-macrosnoarch | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-sourcenoarch | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symss390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_280-defaultppc64le | Advisory build | 1-8.5.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_280-defaults390x | Advisory build | 1-8.5.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_280-defaultx86_64 | Advisory build | 1-8.5.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultaarch64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaults390x | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: cxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter() If device_register() fails in cxl_register_afu|adapter(), the device is not added, device_unregister() can not be called in the error path, otherwise it will cause a null-ptr-deref because of removing not added device. As comment of device_register() says, it should use put_device() to give up the reference in the error path. So split device_unregister() into device_del() and put_device(), then goes to put dev when register fails.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 14baf4d9c739e6e69150512d2eb23c71fffcc192 to < 96fba6fb95bdede80583c262ac185da09661f264 (affected · git)14baf4d9c739e6e69150512d2eb23c71fffcc192 to < 1ae581696b7a799afa39a664c4b721569643f58a (affected · git)14baf4d9c739e6e69150512d2eb23c71fffcc192 to < d775a1da5a52b4f4bb02f2707ba420d1bec48dbb (affected · git)14baf4d9c739e6e69150512d2eb23c71fffcc192 to < 60b2ed21a65f3f5318666ccd765c3507991370cf (affected · git)14baf4d9c739e6e69150512d2eb23c71fffcc192 to < 170e8c2d2b61e15e7f7cfeded81bc1e959a15ed8 (affected · git)14baf4d9c739e6e69150512d2eb23c71fffcc192 to < e5021bbf11b024cc65ea1e84c377df484183be4b (affected · git)14baf4d9c739e6e69150512d2eb23c71fffcc192 to < b32559ee4e6667c5c3daf4ec5454c277d1f255d2 (affected · git)14baf4d9c739e6e69150512d2eb23c71fffcc192 to < ab44c182353be101c3be9465e1d15d42130c53c4 (affected · git)14baf4d9c739e6e69150512d2eb23c71fffcc192 to < 61c80d1c3833e196256fb060382db94f24d3d9a7 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.6 (affected)0 to < 4.6 (unaffected · semver)4.9.337 through 4.9.* (unaffected · semver)4.14.303 through 4.14.* (unaffected · semver)4.19.270 through 4.19.* (unaffected · semver)5.4.229 through 5.4.* (unaffected · semver)5.10.163 through 5.10.* (unaffected · semver)5.15.86 through 5.15.* (unaffected · semver)6.0.16 through 6.0.* (unaffected · semver)6.1.2 through 6.1.* (unaffected · semver)6.2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
9- https://git.kernel.org/stable/c/170e8c2d2b61e15e7f7cfeded81bc1e959a15ed8
- https://git.kernel.org/stable/c/1ae581696b7a799afa39a664c4b721569643f58a
- https://git.kernel.org/stable/c/60b2ed21a65f3f5318666ccd765c3507991370cf
- https://git.kernel.org/stable/c/61c80d1c3833e196256fb060382db94f24d3d9a7
- https://git.kernel.org/stable/c/96fba6fb95bdede80583c262ac185da09661f264
- https://git.kernel.org/stable/c/ab44c182353be101c3be9465e1d15d42130c53c4
- https://git.kernel.org/stable/c/b32559ee4e6667c5c3daf4ec5454c277d1f255d2
- https://git.kernel.org/stable/c/d775a1da5a52b4f4bb02f2707ba420d1bec48dbb
- https://git.kernel.org/stable/c/e5021bbf11b024cc65ea1e84c377df484183be4b
Provider assertions
2Linux · cna
cxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c412f9c45f794ad9d691de7ffcde2f906192f167f4a719736543734e5e105828
- Ingested
- 07 Nov 2026, 23:07:48 UTC
- Source record
- Official CVE record