CVE-2022-20154: Android Linux Kernel - Use-After-Free Vulnerability in SCTP Socket Dump

:linux_kernel: Updated 02 Oct 2025

Summary

01/06/2022
Yes i
Moderate
Not published

CVE-2022-20154: In lock_sock_nested of sock.c, there is a possible use after free due to a race condition. Affects :linux_kernel: versions >= :0, < :2022-06-05. Fixed in :2022-06-05. How to fix ↓

Also tracked for

The same CVE-2022-20154 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is the core of the Android operating system, managing hardware resources and providing essential services to applications. It includes various subsystems, one of which is the SCTP (Stream Control Transmission Protocol) net subsystem. This subsystem is responsible for handling network communications, particularly for applications that require reliable, message-oriented communication. The vulnerability in question arises from a use-after-free condition in the SCTP socket dump functionality, which can lead to local privilege escalation.

Vulnerability Detail

The vulnerability is a use-after-free issue located in the sctp_sock_dump function within the SCTP net subsystem. It originates from a race condition in the lock_sock_nested function of sock.c, where a socket may be freed while still being accessed. This can allow an attacker to execute arbitrary code with elevated privileges, potentially leading to a complete system compromise. The exploitation does not require user interaction, making it particularly dangerous.

How To Fix

Minimum fixed version

:2022-06-05

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds available for this vulnerability. The best course of action is to apply the necessary updates as soon as they are available.

Conclusion

CVE-2022-20154 is a critical vulnerability in the Android Linux kernel that poses a significant risk due to its potential for local privilege escalation. Users are strongly advised to update their systems to mitigate this risk. Regular monitoring for vulnerabilities using tools like Vulert can also enhance security.

See every vulnerability recorded for :linux_kernel: →

Share this vulnerability

FAQ

CVE-2022-20154 is a use-after-free vulnerability in the SCTP socket dump functionality of the Android Linux kernel, which can lead to local privilege escalation.

Devices running an affected version of the Android kernel prior to the fix released on June 5, 2022, may be vulnerable. You can use tools like Vulert to check your application for vulnerabilities.

If exploited, this vulnerability could allow an attacker to execute arbitrary code with elevated privileges, potentially compromising the entire system.

No, user interaction is not needed for exploitation, making it particularly severe.

The best protection is to update your Android kernel to the latest version that includes the security patch for CVE-2022-20154.

Related vulnerabilities

Recent vulnerabilities recorded for :linux_kernel:.

How To Fix

Minimum fixed version

:2022-06-05

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback