Buffer Overflow in strlen in ocfs2

Kernel Updated 02 Oct 2025

Summary

14/11/2021
N/A
No i
Unrated
Not published

GSD-2021-1001919: ocfs2: mount fails with buffer overflow in strlen. Affects Kernel versions < ac011cb3ff7a76b3e0e6e77158ee4ba2f929e1fb. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

ocfs2 is a file system implemented in the Linux kernel. It is designed to provide a shared file system for use with Oracle databases. The ocfs2 file system allows multiple nodes to concurrently access the same storage device. It provides features such as distributed metadata, caching, and high availability. However, a vulnerability has been discovered in ocfs2 that can lead to a buffer overflow in the strlen function.

Vulnerability Detail

The vulnerability in ocfs2 occurs due to a buffer overflow in the strlen function. When mounting an ocfs2 file system, the strlen function is used to determine the length of a string. However, if the string is longer than the buffer allocated for it, a buffer overflow can occur. This can potentially lead to arbitrary code execution or a denial of service attack. The vulnerability has been fixed in Linux Kernel version v4.4.290 by commit ac011cb3ff7a76b3e0e6e77158ee4ba2f929e1fb.

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 avoid mounting ocfs2 file systems until the vulnerability is fixed. This can be achieved by disabling the ocfs2 module or removing any ocfs2 file system entries from the /etc/fstab file. However, this workaround may impact the availability of ocfs2 file systems and should be considered temporary.

Conclusion

The buffer overflow vulnerability in strlen function in ocfs2 can be mitigated by updating the Linux Kernel to version v4.4.290 or later. If immediate update is not possible, avoiding the mounting of ocfs2 file systems can serve as a temporary workaround. 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 implemented in the Linux kernel, designed for use with Oracle databases. It allows multiple nodes to concurrently access the same storage device.

The vulnerability can lead to a buffer overflow, potentially enabling arbitrary code execution or causing a denial of service attack.

The vulnerability can be fixed by updating the Linux Kernel to version v4.4.290 or later.

A temporary workaround is to avoid mounting ocfs2 file systems until the vulnerability is fixed. This can be achieved by disabling the ocfs2 module or removing ocfs2 entries from the /etc/fstab file.

More information about the vulnerability can be found in the Open Source Vulnerability Database (OSVDB) entry: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1001xxx/GSD-2021-1001919.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