CVE-2022-49345
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49345 affects the Linux kernel's networking subsystem, specifically related to the xfrm4protocolinit() function. The vulnerability was discovered when a combination of EXPORTSYMBOL and _init annotations created a potential security issue where the .init.text section is freed after initialization while still being exported as a symbol (Kernel Git).

Technical details

The vulnerability stems from an improper combination of EXPORTSYMBOL and _init annotations in the Linux kernel's networking code. The _init-annotated section gets freed after initialization, but the symbol remains exported, which could lead to accessing freed memory. This issue was present in the xfrm4protocolinit() function in net/ipv4/xfrm4protocol.c. The vulnerability was identified when modpost warnings were fixed after being broken for approximately a decade (Kernel Git).

Impact

If exploited, this vulnerability could result in a kernel panic due to accessing freed memory. The issue affects systems where modules might attempt to use the exported symbol after the initialization phase has completed (Kernel Git).

Mitigation and workarounds

The issue was resolved by removing the EXPORTSYMBOL for xfrm4protocolinit() rather than removing the _init annotation. This solution was chosen because the only in-tree call-site in net/ipv4/xfrm4policy.c is never compiled as modular since CONFIGXFRM is a boolean option (Kernel Git).

Additional resources


SourceThis report was generated using AI

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