VYPR
Unrated severityNVD Advisory· Published Dec 9, 2025· Updated Apr 15, 2026

CVE-2023-53783

CVE-2023-53783

Description

In the Linux kernel, the following vulnerability has been resolved:

blk-iocost: fix divide by 0 error in calc_lcoefs()

echo max of u64 to cost.model can cause divide by 0 error.

# echo 8:0 rbps=18446744073709551615 > /sys/fs/cgroup/io.cost.model

divide error: 0000 [#1] PREEMPT SMP RIP: 0010:calc_lcoefs+0x4c/0xc0 Call Trace:

ioc_refresh_params+0x2b3/0x4f0 ioc_cost_model_write+0x3cb/0x4c0 ? _copy_from_iter+0x6d/0x6c0 ? kernfs_fop_write_iter+0xfc/0x270 cgroup_file_write+0xa0/0x200 kernfs_fop_write_iter+0x17d/0x270 vfs_write+0x414/0x620 ksys_write+0x73/0x160 __x64_sys_write+0x1e/0x30 do_syscall_64+0x35/0x80 entry_SYSCALL_64_after_hwframe+0x63/0xcd

calc_lcoefs() uses the input value of cost.model in DIV_ROUND_UP_ULL, overflow would happen if bps plus IOC_PAGE_SIZE is greater than ULLONG_MAX, it can cause divide by 0 error.

Fix the problem by setting basecost

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Writing a max u64 value to the cgroup io.cost.model file causes a divide-by-zero kernel panic due to arithmetic overflow.

Root

Cause

CVE-2023-53783 is a divide-by-zero vulnerability in the Linux kernel's blk-iocost subsystem, specifically within the calc_lcoefs() function. The issue arises when a user writes an extremely large value (e.g., the maximum u64 value, 18446744073709551615) for rbps (read bytes per second) to the cgroup's io.cost.model file. This input is used in a DIV_ROUND_UP_ULL macro call; if bps + IOC_PAGE_SIZE overflows and wraps around to zero, it causes a division-by-zero exception and a kernel panic [1][2].

Attack

Surface

To trigger the bug, a local user must have write access to the io.cost.model cgroup file, which typically requires root privileges or Linux capabilities such as CAP_SYS_ADMIN within a cgroup namespace. No network attack vector exists; exploitation is local and requires sufficient permissions to write to that cgroup interface.

Impact

A successful trigger results in an immediate kernel crash (oops) in the calc_lcoefs path, leading to a denial of service (DoS) for the entire system. The crash trace shows the divide error occurs during the ioc_refresh_params() call chain initiated by the cgroup write [1]. While this does not provide arbitrary code execution, it reliably destabilizes the host.

Mitigation

The fix, merged into multiple stable kernel branches, adds a check to sanitize the input value inside calc_lcoefs(), preventing the arithmetic overflow that leads to the division by zero [2]. System administrators should apply the latest kernel updates from their distribution to close this vulnerability.

AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

6

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

6

News mentions

0

No linked articles in our index yet.