Critical NULL Pointer Dereference in Linux Kernel - CVE-2024-46721

linux Updated 02 Oct 2025

Summary

18/09/2024
N/A
Yes i
Medium
5.5

CVE-2024-46721: In the Linux kernel, the following vulnerability has been resolved: apparmor: fix possible NULL pointer dereference profile->parent->dents[AAFS_PROF_DIR] could be NULL only if its parent is made from create_missing_ances... Affects linux versions < 5.10.226-1. Fixed in 5.10.226-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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. It is known for its robustness and flexibility, supporting a wide range of devices and architectures. However, vulnerabilities can arise, such as CVE-2024-46721, which affects the AppArmor security module, potentially compromising system stability and security.

Vulnerability Detail

CVE-2024-46721 is a critical vulnerability in the Linux kernel's AppArmor module, where a NULL pointer dereference can occur if the profile's parent directory is improperly handled. This situation arises when the parent is created using __create_missing_ancestors and the old entry is NULL during profile replacement. The result is a kernel panic, leading to system crashes and potential data loss. The vulnerability is characterized by a specific bug report indicating a NULL pointer dereference at address 0000000000000030, which can be exploited under certain conditions.

How To Fix

Minimum fixed version

5.10.226-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

As a temporary workaround, users can disable AppArmor until the kernel is updated. This can be done by executing the following command:

sudo systemctl stop apparmor

However, this is not recommended as it reduces system security. It is crucial to apply the kernel update as soon as possible.

Conclusion

CVE-2024-46721 represents a significant vulnerability in the Linux kernel's AppArmor module, necessitating prompt action to mitigate risks. Users are strongly advised to update their systems to the latest kernel version to ensure protection against potential exploits. Utilizing tools like Vulert can help in monitoring vulnerabilities effectively.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2024-46721 is a vulnerability in the Linux kernel's AppArmor module that can lead to a NULL pointer dereference, causing system crashes.

Exploitation of this vulnerability can lead to kernel panics, resulting in system instability and potential data loss.

The vulnerability affects various Debian versions, including Debian 11, 12, and 13, that utilize the Linux kernel.

You can use tools like Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected.

If an immediate update is not possible, consider disabling AppArmor temporarily as a workaround, but be aware that this reduces your system's security.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

5.10.226-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