Vulnerability in ceph: Fix Inode Reference Leakage in ceph_get_snapdir()

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001383: ceph: fix inode reference leakage in ceph_get_snapdir(). Affects Kernel versions < 9cd21981dedfb4fe9f344529e4be35727cb10940. 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 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

Ceph is a distributed storage system that provides scalable and reliable storage for large-scale applications. It is commonly used in cloud computing environments to store and manage data. The ceph_get_snapdir() function is a part of the Ceph kernel module and is responsible for retrieving the snapshot directory inode. Inode reference leakage occurs when the function fails to properly release the inode reference, leading to a potential resource leak and subsequent memory exhaustion.

Vulnerability Detail

The vulnerability in ceph_get_snapdir() allows an attacker to exploit the resource leak and exhaust system memory, potentially leading to a denial of service (DoS) condition. By repeatedly triggering this vulnerability, an attacker could cause the system to become unresponsive or crash. This vulnerability has been assigned the ID GSD-2022-1001383 and has been fixed in Linux Kernel version v5.16.20 by commit 9cd21981dedfb4fe9f344529e4be35727cb10940.

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

If updating the kernel is not immediately feasible, a temporary workaround can be implemented by modifying the ceph_get_snapdir() function to release the inode reference properly. Here is an example code snippet that demonstrates the workaround:

void ceph_get_snapdir(struct inode *parent)
{
    struct inode *inode;

    // Existing code
    ...

    // Workaround: Release inode reference
    iput(inode);
}

Conclusion

The vulnerability in ceph_get_snapdir() can be mitigated by updating the Linux Kernel to version v5.16.20 or later. Additionally, a temporary workaround is available for immediate implementation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

Ceph is a distributed storage system that provides scalable and reliable storage for large-scale applications. It is commonly used in cloud computing environments.

ceph_get_snapdir() is a function in the Ceph kernel module that retrieves the snapshot directory inode.

Inode reference leakage occurs when a function fails to properly release an inode reference, leading to a potential resource leak and subsequent memory exhaustion.

The vulnerability in ceph_get_snapdir() can be exploited to exhaust system memory, potentially leading to a denial of service (DoS) condition.

To fix this vulnerability, update the Linux Kernel to version v5.16.20 or later and recompile/reinstall the Ceph module. Alternatively, apply the provided workaround until the kernel update is feasible.

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