Buffer Overflow Vulnerability in ocfs2 Mount

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1001824: ocfs2: mount fails with buffer overflow in strlen. Affects Kernel versions < d3a83576378b4c904f711598dde2c5e881c4295c. 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 ocfs2 package is a file system implementation for the Linux Kernel. It provides a distributed file system that allows multiple nodes to access shared storage. The ocfs2 file system is commonly used in high-performance computing clusters and other distributed systems. However, a vulnerability has been discovered in the ocfs2 mount process that can lead to a buffer overflow.

Vulnerability Detail

The vulnerability in ocfs2 occurs during the mount process when calculating the length of a string. Due to a lack of proper bounds checking, an attacker can provide a specially crafted string that exceeds the expected length, leading to a buffer overflow. This buffer overflow can potentially allow the attacker to execute arbitrary code or crash the system. The vulnerability has been assigned the ID GSD-2021-1001824 and is fixed in Linux Kernel version v5.4.156 by commit d3a83576378b4c904f711598dde2c5e881c4295c.

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 Linux Kernel is not immediately feasible, a possible workaround is to disable the ocfs2 file system or avoid mounting ocfs2 file systems until the kernel is updated. This can be done by modifying the system's configuration files to exclude the ocfs2 module from loading or commenting out any ocfs2 entries in the /etc/fstab file.

Conclusion

The buffer overflow vulnerability in ocfs2 mount can pose a significant risk to systems utilizing this file system. It is crucial to update the Linux Kernel to version v5.4.156 or later to address this vulnerability. If immediate kernel update is not possible, disabling the ocfs2 file system or avoiding mounting ocfs2 file systems can serve as a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

ocfs2 is a file system implementation for the Linux Kernel that provides a distributed file system for shared storage in distributed systems.

A buffer overflow is a vulnerability that occurs when a program writes data beyond the bounds of a buffer, potentially overwriting adjacent memory and leading to unexpected behavior or security issues.

This vulnerability in ocfs2 can allow an attacker to execute arbitrary code or crash the system by exploiting the buffer overflow.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will analyze the dependencies and alert you if any vulnerabilities are found.

Yes, the vulnerability is fixed in Linux Kernel version v5.4.156. It is recommended to update the kernel to this version or later to mitigate the vulnerability.

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