CVE-2022-49196
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, a use-after-free vulnerability was discovered in the powerpc/pseries subsystem, specifically in the remove_phb_dynamic() function (CVE-2022-49196). The vulnerability occurs when the function uses &phb->io_resource after calling device_unregister(&host_bridge->dev), which may have already freed the phb pointer since pcibios_free_controller_deferred() is the release function for the host_bridge (Kernel Git).

Technical details

The issue manifests when there are no outstanding references when device_unregister() is called, causing the phb to be freed while it's still being accessed. While this issue has generally gone unnoticed, it becomes apparent when running with slub_debug and page_poison enabled, leading to a system crash. The vulnerability was introduced through commit 2dd9c11b9d4d which implemented the use of pci_host_bridge.release_fn() to kfree(phb) (Kernel Git).

Impact

When triggered, this vulnerability can lead to a system crash due to accessing freed memory. This is particularly evident in environments with memory debugging features enabled, such as slub_debug and page_poison, where the system will crash with a bad page fault exception (Kernel Git).

Mitigation and workarounds

The issue has been fixed by maintaining a reference to the host_bridge->dev until all operations with phb are completed. This is implemented by adding get_device() before using the phb pointer and corresponding put_device() after the operations are complete. The fix is available in the kernel patch that adds proper reference counting to prevent the use-after-free condition (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules-core
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-doc
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-abi-stablelists
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management