CVE-2022-50244
publishedcxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxf204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 82e68432668ae75b4c814d160f6987ecb0681273 · f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 82e5481428faf11c79b9c094dd24a1849bbf64ac · f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < c4b2e35df919d99bbbed033c2fa0b607f9f463b5 · f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 361412dae1690d4b5df6f92fc943cdc773c95cbc · f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec · f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 22511eefa61db26e12c97dd7ada3071dbdfcb004 · f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 139abd4c626a6f7ce02789ed5f73aa2256e0542b · f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 2f5fd31b2f24b9b8a80ab566fd8c4e1e94cb4339 · f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 02cd3032b154fa02fdf90e7467abaeed889330b2 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.18 (affected) · 0 to < 3.18 (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.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaults390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-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.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaults390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultaarch64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaults390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultaarch64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaults390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseaarch64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-bases390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-basex86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develaarch64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-devels390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgrafts390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-devels390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-mans390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-develnoarch | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-macrosnoarch | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-sourcenoarch | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsaarch64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symss390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_275-defaultppc64le | Advisory build | 1-8.3.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_275-defaults390x | Advisory build | 1-8.3.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_275-defaultx86_64 | Advisory build | 1-8.3.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultaarch64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaults390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter() If device_register() fails in cxl_pci_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 | f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 82e68432668ae75b4c814d160f6987ecb0681273 (affected · git)f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 82e5481428faf11c79b9c094dd24a1849bbf64ac (affected · git)f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < c4b2e35df919d99bbbed033c2fa0b607f9f463b5 (affected · git)f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 361412dae1690d4b5df6f92fc943cdc773c95cbc (affected · git)f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec (affected · git)f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 22511eefa61db26e12c97dd7ada3071dbdfcb004 (affected · git)f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 139abd4c626a6f7ce02789ed5f73aa2256e0542b (affected · git)f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 2f5fd31b2f24b9b8a80ab566fd8c4e1e94cb4339 (affected · git)f204e0b8cedd7da1dfcfd05ed6b7692737e24029 to < 02cd3032b154fa02fdf90e7467abaeed889330b2 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.18 (affected)0 to < 3.18 (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/02cd3032b154fa02fdf90e7467abaeed889330b2
- https://git.kernel.org/stable/c/0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec
- https://git.kernel.org/stable/c/139abd4c626a6f7ce02789ed5f73aa2256e0542b
- https://git.kernel.org/stable/c/22511eefa61db26e12c97dd7ada3071dbdfcb004
- https://git.kernel.org/stable/c/2f5fd31b2f24b9b8a80ab566fd8c4e1e94cb4339
- https://git.kernel.org/stable/c/361412dae1690d4b5df6f92fc943cdc773c95cbc
- https://git.kernel.org/stable/c/82e5481428faf11c79b9c094dd24a1849bbf64ac
- https://git.kernel.org/stable/c/82e68432668ae75b4c814d160f6987ecb0681273
- https://git.kernel.org/stable/c/c4b2e35df919d99bbbed033c2fa0b607f9f463b5
Provider assertions
2Linux · cna
cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8f09b3cf08abaa04652e272c06e86c2043a3a78883456a74fcd65d740f5e8826
- Ingested
- 07 Nov 2026, 23:07:48 UTC
- Source record
- Official CVE record