Null-Pointer Dereference Vulnerability in audit_filter_rules

Kernel Updated 02 Oct 2025

Summary

28/10/2021
N/A
No i
Unrated
Not published

UVI-2021-1001878: audit: fix possible null-pointer dereference in audit_filter_rules. Affects Kernel versions >= bf361231c295d92a28ca283ea713f56e93e55796, < 4e9e46a700201b4c85081fd478c99c692a9aaa0d. No fix is published. 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 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 Kernel is a critical component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The audit subsystem in the Kernel is responsible for monitoring and logging system events for security and compliance purposes. The audit_filter_rules function is a part of this subsystem and is used to process audit rules for filtering events. However, a vulnerability has been discovered in this function that can lead to a null-pointer dereference.

Vulnerability Detail

The null-pointer dereference vulnerability in audit_filter_rules arises from a flaw in the code logic. When processing certain audit rules, the function fails to properly handle a null pointer, leading to a crash or potential privilege escalation. An attacker could potentially exploit this vulnerability to crash the system or execute arbitrary code with elevated privileges. The impact and attack plausibility of this vulnerability have not been proven yet.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, users can apply the patch provided in commit 4e9e46a700201b4c85081fd478c99c692a9aaa0d manually. Here is an example of the patch:

-  if (filter->inode && filter->inode->ino == ino)
+  if (filter->inode && filter->inode->ino && filter->inode->ino == ino)

Conclusion

The null-pointer dereference vulnerability in audit_filter_rules can pose a significant risk to the security and stability of Linux systems. It is crucial to update the Kernel to the latest stable version to ensure the vulnerability is patched. Applying the provided patch manually can also mitigate the risk. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can range from system crashes to potential privilege escalation. An attacker could exploit this vulnerability to crash the system or execute arbitrary code with elevated privileges.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

Yes, a fix for this vulnerability is available in Linux Kernel version v5.14.15 or later. It is recommended to update your Kernel to the latest stable version to patch this vulnerability.

Yes, you can apply the patch provided in commit 4e9e46a700201b4c85081fd478c99c692a9aaa0d manually. The patch modifies the code logic to handle the null pointer correctly and mitigate the vulnerability.

You can find more information about this vulnerability, including the technical details and the fix, in the vulnerability report at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1001xxx/UVI-2021-1001878.json.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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