Buffer Overflow in strlen Function in ocfs2 Package

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1001781: ocfs2: mount fails with buffer overflow in strlen. Affects Kernel versions < 4b74ddcc22ee6455946e80a9c4808801f8f8561e. 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

The ocfs2 package is a component of the Linux Kernel ecosystem. It provides a file system implementation for the Oracle Cluster File System 2 (OCFS2). OCFS2 is a shared-disk file system designed for use in a cluster environment. It allows multiple nodes to simultaneously access the same file system, providing high availability and scalability. The ocfs2 package is widely used in Linux-based cluster setups.

Vulnerability Detail

The ocfs2 package is vulnerable to a buffer overflow in the strlen function. This vulnerability can be exploited by an attacker to cause a denial-of-service condition or potentially execute arbitrary code. When mounting an OCFS2 file system, the strlen function is used to calculate the length of a string. However, due to a lack of proper input validation, an attacker can provide a specially crafted string that exceeds the buffer size allocated for the calculation, leading to a buffer overflow. This can result in memory corruption and potentially allow the attacker to gain control over the affected system.

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 temporary workaround, users can avoid mounting OCFS2 file systems until the kernel is updated to the patched version. This will help mitigate the risk of exploitation. However, it is strongly advised to apply the official fix as soon as possible.

Conclusion

The ocfs2 package in the Linux Kernel is vulnerable to a buffer overflow in the strlen function. This vulnerability can be mitigated by updating the kernel to version v4.9.288 or later. It is recommended to apply the official fix as soon as possible to ensure the security and stability of the system. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

ocfs2 is a file system implementation for the Oracle Cluster File System 2 (OCFS2), designed for use in a cluster environment.

The vulnerability can lead to a denial-of-service condition or potential execution of arbitrary code, allowing an attacker to gain control over the affected system.

To fix this vulnerability, update the Linux Kernel to version v4.9.288 or later, which includes the necessary patch.

As a temporary workaround, avoid mounting OCFS2 file systems until the kernel is updated to the patched version.

For more details about this vulnerability, refer to the source link provided in the database_specific field of the vulnerability details.

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