Critical NULL Pointer Dereference in Linux Kernel's Ring Buffer Management

linux Updated 02 Oct 2025

Summary

01/05/2025
N/A
Yes i
Medium
5.5

CVE-2022-49889: In the Linux kernel, the following vulnerability has been resolved: ring-buffer: Check for NULL cpu_buffer in ring_buffer_wake_waiters() On some machines the number of listed CPUs may be bigger than the actual CPUs that... Affects linux versions < 6.0.8-1. Fixed in 6.0.8-1. How to fix ↓

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux kernel is the core component of many operating systems, responsible for managing hardware and system resources. It provides essential services for all other parts of the operating system. The kernel's tracing subsystem allows developers to monitor system performance and behavior, but it can be vulnerable to issues that arise from improper handling of CPU resources. This specific vulnerability affects the ring buffer management, which is crucial for efficient data handling in multi-CPU environments.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the ring buffer management system, specifically in the function ring_buffer_wake_waiters(). This issue arises when the number of CPUs listed exceeds the actual number of CPUs present on the machine. The tracing subsystem allocates a per-CPU directory for accessing the ring buffer, but it only allocates buffers for online CPUs. If the function attempts to wake waiters on a NULL buffer, it leads to a NULL pointer dereference, potentially causing system crashes or instability. This vulnerability was addressed by adding checks to ensure that the buffer is allocated before attempting to wake waiters, preventing the dereference of a NULL pointer.

How To Fix

Minimum fixed version

6.0.8-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

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

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the patch by updating the Linux kernel to the fixed version.

Conclusion

CVE-2022-49889 is a critical vulnerability in the Linux kernel that can lead to system instability due to a NULL pointer dereference in the ring buffer management. Users are strongly advised to update their kernel to the patched version 6.0.8-1 to ensure system security. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the integrity of your software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49889 is a vulnerability in the Linux kernel's ring buffer management that can lead to a NULL pointer dereference, potentially causing system crashes.

If your system is running a vulnerable version of the Linux kernel, it may experience instability or crashes when the ring buffer attempts to wake waiters on a NULL buffer.

If you are using a version prior to 6.0.8-1, your system is likely affected by this vulnerability. Check your kernel version using the command 'uname -r'.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software by analyzing the manifest file. Visit https://vulert.com for more information.

While there are no specific workarounds for this vulnerability, it is crucial to plan an update as soon as possible to mitigate risks associated with this issue.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.0.8-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

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