# CVE-2024-26689: linux: In the Linux kernel, the following vulnerability has been resolved:  ceph: prevent use-after-free in encode_cap_msg()...

CVE-2024-26689 is fixed in 22 products on 1 platform, first by ALAS2023-2024-549, released February 29, 2024. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2024-26689
- Priority: High
- CVSS: 7.8 (high)
- EPSS: 0.0070
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 29, 2024

## Description

In the Linux kernel, the following vulnerability has been resolved:  ceph: prevent use-after-free in encode_cap_msg()  In fs/ceph/caps.c, in encode_cap_msg(), "use after free" error was caught by KASAN at this line - 'ceph_buffer_get(arg->xattr_buf);'. This implies before the refcount could be increment here, it was freed.  In same file, in "handle_cap_grant()" refcount is decremented by this line - 'ceph_buffer_put(ci->i_xattrs.blob);'. It appears that a race occurred and resource was freed by the latter line before the former line could increment it.  encode_cap_msg() is called by __send_cap() and __send_cap() is called by ceph_check_caps() after calling __prep_cap(). __prep_cap() is where arg->xattr_buf is assigned to ci->i_xattrs.blob. This is the spot where the refcount must be increased to prevent "use after free" error.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | bpftool amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | bpftool-debuginfo amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-debuginfo amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-debuginfo-common-aarch64 amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-debuginfo-common-x86_64 amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-devel amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-headers amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-libbpf amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-libbpf-devel amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-libbpf-static amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-livepatch-6.1.79-99.164 amzn 2023 | 1.0-0.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-modules-extra amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-modules-extra-common amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-tools amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-tools-debuginfo amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-tools-devel amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | linux Debian 12.15 (bookworm) | 6.1.82-1 | [DEBIAN-CVE-2024-26689](https://patchblox.com/security/data/fix/linux/debian-cve-2024-26689.md) | Apr 3, 2024 |
| Linux | linux Debian 13.5 (trixie) | 6.7.7-1 | [DEBIAN-CVE-2024-26689](https://patchblox.com/security/data/fix/linux/debian-cve-2024-26689.md) | Apr 3, 2024 |
| Linux | linux Debian 14 | 6.7.7-1 | [DEBIAN-CVE-2024-26689](https://patchblox.com/security/data/fix/linux/debian-cve-2024-26689.md) | Apr 3, 2024 |
| Linux | perf amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | perf-debuginfo amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | python3-perf amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | python3-perf-debuginfo amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
