libceph: make decode_pool() more resilient against corrupted osdmaps
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4f6a7e5ee1393ec4b243b39dac9f36992d161540 · < 2acb8517429ab42146c6c0ac1daed1f03d2fd125| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
libceph: make decode_pool() more resilient against corrupted osdmaps
If the osdmap is (maliciously) corrupted such that the encoded length of ceph_pg_pool envelope is less than what is expected for a particular encoding version, out-of-bounds reads may ensue because the only bounds check that is there is based on that length value.
This patch adds explicit bounds checks for each field that is decoded or skipped.
From the CVE record · Linux
The Linux kernel's libceph decode_pool() can read out of bounds when a maliciously corrupted osdmap encodes a ceph_pg_pool envelope shorter than expected for its encoding version. The input does not specify how an attacker supplies the osdmap, whether authentication is needed, or whether user interaction is required.
Engineers running Linux kernels that include libceph should check their versions; affected versions are not specified.