Divide-by-zero Vulnerability in iocost Package

Kernel Updated 02 Oct 2025

Summary

27/12/2021
N/A
No i
Unrated
Not published

GSD-2021-1002710: iocost: Fix divide-by-zero on donation from low hweight cgroup. Affects Kernel versions >= f1de2439ec43b74764f2a26e3a310b24407e3bde, < a7c80674538f15f85d68138240aae440b8039519. 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 iocost package is a component of the Linux Kernel, which is responsible for managing the input/output (I/O) costs of different processes. It ensures fair allocation of I/O resources among various cgroups. Cgroups are used to group processes and manage their resource usage. The iocost package calculates the I/O cost of each cgroup and distributes it accordingly. However, a vulnerability has been discovered in the iocost package that can lead to a divide-by-zero error when a donation is made from a low hweight cgroup.

Vulnerability Detail

The divide-by-zero vulnerability in the iocost package occurs when a donation is made from a low hweight cgroup. This can result in a divide-by-zero error, leading to a system crash or potential privilege escalation. An attacker could potentially exploit this vulnerability to crash the system or gain elevated privileges. The vulnerability was introduced in version v5.10 of the Linux Kernel and has been fixed in version v5.10.88.

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

There is no specific workaround mentioned for this vulnerability. The recommended approach is to update the Linux Kernel to the latest version.

Conclusion

The divide-by-zero vulnerability in the iocost package of the Linux Kernel can have serious consequences, including system crashes and potential privilege escalation. It is crucial to update the Linux Kernel to version v5.10.88 or later to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The iocost package is a component of the Linux Kernel that manages the input/output costs of different processes and ensures fair allocation of I/O resources among cgroups.

A cgroup is a Linux kernel feature that allows grouping processes and managing their resource usage. It provides control over resources such as CPU, memory, and I/O.

A divide-by-zero error occurs when a program attempts to divide a number by zero, which is an undefined operation in mathematics. This can lead to crashes or unexpected behavior in software.

The divide-by-zero vulnerability in the iocost package can result in a system crash or potential privilege escalation. An attacker could exploit this vulnerability to crash the system or gain elevated privileges.

To protect your system, it is recommended to update the Linux Kernel to version v5.10.88 or later. This fix addresses the divide-by-zero error in the iocost package.

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