ceph: give up on paths longer than PATH_MAX
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9030aaf9bf0a1eee47a154c316c789e959638b0f · < 550f7ca98ee028a606aa75705a7e77b1bd11720f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ceph: give up on paths longer than PATH_MAX
If the full path to be built by ceph_mdsc_build_path() happens to be longer than PATH_MAX, then this function will enter an endless (retry) loop, effectively blocking the whole task. Most of the machine becomes unusable, making this a very simple and effective DoS vulnerability.
I cannot imagine why this retry was ever implemented, but it seems rather useless and harmful to me. Let's remove it and fail with ENAMETOOLONG instead.
From the CVE record · Linux
The Linux kernel's ceph_mdsc_build_path() can enter an endless retry loop when a path exceeds PATH_MAX. This blocks the task and can make most of the machine unusable. The input does not specify how an attacker reaches this condition or whether authentication is required.
Engineers running the Linux kernel with ceph should check their versions against the vendor advisory; affected versions are not specified.