Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-26689

HIGH 8.8EPSS 59%

ceph: prevent use-after-free in encode_cap_msg()

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 8180d0c27b93a6eb60da1b08ea079e3926328214; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 70e329b440762390258a6fe8c0de93c9fdd56c77; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < f3f98d7d84b31828004545e29fd7262b9f444139; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < ae20db45e482303a20e56f2db667a9d9c54ac7e7; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 7958c1bf5b03c6f1f58e724dbdec93f8f60b96fc; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < cda4672da1c26835dcbd7aec2bfed954eda9b5ef
  • Anyone running Linux 2.6.34

Vulnerability facts

Affected
Linux >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 8180d0c27b93a6eb60da1b08ea079e3926328214; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 70e329b440762390258a6fe8c0de93c9fdd56c77; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < f3f98d7d84b31828004545e29fd7262b9f444139; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < ae20db45e482303a20e56f2db667a9d9c54ac7e7; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 7958c1bf5b03c6f1f58e724dbdec93f8f60b96fc; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < cda4672da1c26835dcbd7aec2bfed954eda9b5ef; Linux 2.6.34
Fixed in
Linux 8180d0c27b93a6eb60da1b08ea079e3926328214, Linux 70e329b440762390258a6fe8c0de93c9fdd56c77, Linux 7958c1bf5b03c6f1f58e724dbdec93f8f60b96fc
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
8.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.92% chance of exploitation in 30 days (percentile 59, 2026-11-26)
CWE
CWE-416
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 8180d0c27b93a6eb60da1b08ea079e3926328214; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 70e329b440762390258a6fe8c0de93c9fdd56c77; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < f3f98d7d84b31828004545e29fd7262b9f444139; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < ae20db45e482303a20e56f2db667a9d9c54ac7e7; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 7958c1bf5b03c6f1f58e724dbdec93f8f60b96fc; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < cda4672da1c26835dcbd7aec2bfed954eda9b5ef—cvelist
Linux2.6.34—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-26689. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26689.md
Affected: Linux >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 8180d0c27b93a6eb60da1b08ea079e3926328214; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 70e329b440762390258a6fe8c0de93c9fdd56c77; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < f3f98d7d84b31828004545e29fd7262b9f444139; >= 9030aaf9bf0a1eee47a154c…
Fixed in: Linux 8180d0c27b93a6eb60da1b08ea079e3926328214, Linux 70e329b440762390258a6fe8c0de93c9fdd56c77, Linux 7958c1bf5b03c6f1f58e724dbdec93f8f60b96fc

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-26689 being exploited?

There is no confirmed exploitation: CVE-2024-26689 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.92% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-26689?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

Which versions are affected by CVE-2024-26689?

Linux >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 8180d0c27b93a6eb60da1b08ea079e3926328214; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 70e329b440762390258a6fe8c0de93c9fdd56c77; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < f3f98d7d84b31828004545e29fd7262b9f444139; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < ae20db45e482303a20e56f2db667a9d9c54ac7e7; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 7958c1bf5b03c6f1f58e724dbdec93f8f60b96fc; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < cda4672da1c26835dcbd7aec2bfed954eda9b5ef; Linux 2.6.34.

Is there a fix for CVE-2024-26689?

Yes. Fixed in Linux 8180d0c27b93a6eb60da1b08ea079e3926328214, Linux 70e329b440762390258a6fe8c0de93c9fdd56c77, Linux 7958c1bf5b03c6f1f58e724dbdec93f8f60b96fc. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2024-26689?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors