CVE-2024-26689: ceph: prevent use-after-free in encode_cap_msg()
Vulnerability summary
CVE-2024-26689 is a high (CVSS 8.8) Use After Free vulnerability in debian debian_linux. EPSS estimates a 0.70% chance of exploitation in the next 30 days, higher than 53.2% of scored vulnerabilities.
Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 43 · Related 40Timeline
- 03-04-2024PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
0.70%
Chance of exploitation in the next 30 days
Percentile
53%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.70% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu116 products
- linux< 3.13.0-210.261 | < 4.4.0-268.302 | < 4.15.0-237.249 | < 5.4.0-215.235 | < 5.15.0-106.116
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 4.4.0-1143.149 | < 4.4.0-1181.196 | < 4.15.0-1180.193 | < 5.4.0-1145.155 | < 5.15.0-1061.67
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian2 products
- linux< 6.1.82-1 | < 6.7.7-1
- debian_linuxEOL10.0
Linux2 products
- linux≥ 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 8180d0c27b93a6eb60da1b08ea079e3926328214 | ≥ 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 70e329b440762390258a6fe8c0de93c9fdd56c77 | ≥ 9030aaf9bf0a1eee47a154c316c789e959638b0f, < f3f98d7d84b31828004545e29fd7262b9f444139 | ≥ 9030aaf9bf0a1eee47a154c316c789e959638b0f, < ae20db45e482303a20e56f2db667a9d9c54ac7e7 | ≥ 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 7958c1bf5b03c6f1f58e724dbdec93f8f60b96fc | ≥ 9030aaf9bf0a1eee47a154c316c789e959638b0f, < cda4672da1c26835dcbd7aec2bfed954eda9b5ef | 2.6.34
- linux_kernel< 5.10.210 | ≥ 5.11, < 5.15.149 | ≥ 5.16, < 6.1.79 | ≥ 6.2, < 6.6.18 | ≥ 6.7, < 6.7.6 | 6.8:rc1 | 6.8:rc2 | 6.8:rc3
3 vendors · 120 products