Fix wrong offset in bio_truncate() in Kernel

Kernel Updated 02 Oct 2025

Summary

18/02/2022
N/A
No i
Unrated
Not published

GSD-2022-1000268: block: Fix wrong offset in bio_truncate(). Affects Kernel versions < 4633a79ff8bc82770486a063a08b55e5162521d8. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Kernel is a critical component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functions for the proper functioning of the system. The bio_truncate() function is part of the block subsystem in the Kernel and is responsible for truncating a block I/O bio. This vulnerability in bio_truncate() can lead to incorrect offset calculation, potentially resulting in data corruption or other security issues.

Vulnerability Detail

The vulnerability in bio_truncate() arises from a wrong offset calculation. This can be exploited by an attacker to manipulate the offset value, leading to unexpected behavior and potential security risks. The impact of this vulnerability can vary depending on the specific usage of bio_truncate() in different scenarios. It is crucial to address this vulnerability to ensure the integrity and security of the 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 workaround, if updating the Kernel is not immediately feasible, it is advised to review the usage of bio_truncate() in the codebase and ensure that the offset calculation is performed correctly. This can involve carefully examining the code logic and verifying the offset calculation against the expected behavior.

Conclusion

The vulnerability in bio_truncate() in the Kernel can lead to incorrect offset calculation, potentially resulting in data corruption or other security issues. It is crucial to update the Linux Kernel to version v5.15.19 or later to fix this vulnerability. If immediate Kernel update is not possible, review the code using bio_truncate() and ensure correct offset calculation. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can vary depending on the specific usage of bio_truncate(). It can potentially lead to data corruption or other security issues.

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

Yes, as a temporary workaround, review the code using bio_truncate() and ensure correct offset calculation until the Kernel can be updated.

At the time of this report, no known exploits for this vulnerability have been reported. However, it is essential to address the vulnerability promptly to mitigate any potential risks.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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