afs: Increase buffer size in afs_update_volume_status()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d2ddc776a4581d900fc3bdc7803b403daae64d88 · < d34a5e57632bb5ff825196ddd9a48ca403626dfa| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
afs: Increase buffer size in afs_update_volume_status()
The max length of volume->vid value is 20 characters. So increase idbuf[] size up to 24 to avoid overflow.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
[DH: Actually, it's 20 + NUL, so increase it to 24 and use snprintf()]
From the CVE record · Linux
The Linux kernel's AFS volume status update uses a buffer too small for the maximum-length volume ID. This can cause a buffer overflow; the input does not establish whether an attacker can trigger it or specify access or interaction requirements.
Engineers running the Linux kernel with AFS should check their kernel versions against the vendor advisory; affected versions are not specified.