CVE-2024-26792 Vulnerability Analysis & Exploit Details

CVE-2024-26792
Vulnerability Scoring

7.8
/10
Very High Risk

Highly exploitable, CVE-2024-26792 poses a critical security risk that could lead to severe breaches.

Attack Complexity Details

  • Attack Complexity: Low
    Exploits can be performed without significant complexity or special conditions.
  • Attack Vector: Local
    Vulnerability requires local system access.
  • Privileges Required: Low
    Some privileges are necessary to exploit the vulnerability.
  • Scope: Unchanged
    Exploit remains within the originally vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2024-26792 Details

Status: Analyzed

Last updated: 🕓 20 Dec 2024, 16:15 UTC
Originally published on: 🕘 04 Apr 2024, 09:15 UTC

Time between publication and last update: 260 days

CVSS Release: version 3

CVSS3 Source

nvd@nist.gov

CVSS3 Type

Primary

CVSS3 Vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVE-2024-26792 Vulnerability Summary

CVE-2024-26792: In the Linux kernel, the following vulnerability has been resolved: btrfs: fix double free of anonymous device after snapshot creation failure When creating a snapshot we may do a double free of an anonymous device in case there's an error committing the transaction. The second free may result in freeing an anonymous device number that was allocated by some other subsystem in the kernel or another btrfs filesystem. The steps that lead to this: 1) At ioctl.c:create_snapshot() we allocate an anonymous device number and assign it to pending_snapshot->anon_dev; 2) Then we call btrfs_commit_transaction() and end up at transaction.c:create_pending_snapshot(); 3) There we call btrfs_get_new_fs_root() and pass it the anonymous device number stored in pending_snapshot->anon_dev; 4) btrfs_get_new_fs_root() frees that anonymous device number because btrfs_lookup_fs_root() returned a root - someone else did a lookup of the new root already, which could some task doing backref walking; 5) After that some error happens in the transaction commit path, and at ioctl.c:create_snapshot() we jump to the 'fail' label, and after that we free again the same anonymous device number, which in the meanwhile may have been reallocated somewhere else, because pending_snapshot->anon_dev still has the same value as in step 1. Recently syzbot ran into this and reported the following trace: ------------[ cut here ]------------ ida_free called for id=51 which is not allocated. WARNING: CPU: 1 PID: 31038 at lib/idr.c:525 ida_free+0x370/0x420 lib/idr.c:525 Modules linked in: CPU: 1 PID: 31038 Comm: syz-executor.2 Not tainted 6.8.0-rc4-syzkaller-00410-gc02197fc9076 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:ida_free+0x370/0x420 lib/idr.c:525 Code: 10 42 80 3c 28 (...) RSP: 0018:ffffc90015a67300 EFLAGS: 00010246 RAX: be5130472f5dd000 RBX: 0000000000000033 RCX: 0000000000040000 RDX: ffffc90009a7a000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90015a673f0 R08: ffffffff81577992 R09: 1ffff92002b4cdb4 R10: dffffc0000000000 R11: fffff52002b4cdb5 R12: 0000000000000246 R13: dffffc0000000000 R14: ffffffff8e256b80 R15: 0000000000000246 FS: 00007fca3f4b46c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f167a17b978 CR3: 000000001ed26000 CR4: 0000000000350ef0 Call Trace: <TASK> btrfs_get_root_ref+0xa48/0xaf0 fs/btrfs/disk-io.c:1346 create_pending_snapshot+0xff2/0x2bc0 fs/btrfs/transaction.c:1837 create_pending_snapshots+0x195/0x1d0 fs/btrfs/transaction.c:1931 btrfs_commit_transaction+0xf1c/0x3740 fs/btrfs/transaction.c:2404 create_snapshot+0x507/0x880 fs/btrfs/ioctl.c:848 btrfs_mksubvol+0x5d0/0x750 fs/btrfs/ioctl.c:998 btrfs_mksnapshot+0xb5/0xf0 fs/btrfs/ioctl.c:1044 __btrfs_ioctl_snap_create+0x387/0x4b0 fs/btrfs/ioctl.c:1306 btrfs_ioctl_snap_create_v2+0x1ca/0x400 fs/btrfs/ioctl.c:1393 btrfs_ioctl+0xa74/0xd40 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xfe/0x170 fs/ioctl.c:857 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7fca3e67dda9 Code: 28 00 00 00 (...) RSP: 002b:00007fca3f4b40c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fca3e7abf80 RCX: 00007fca3e67dda9 RDX: 00000000200005c0 RSI: 0000000050009417 RDI: 0000000000000003 RBP: 00007fca3e6ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fca3e7abf80 R15: 00007fff6bf95658 </TASK> Where we get an explicit message where we attempt to free an anonymous device number that is not currently allocated. It happens in a different code path from the example below, at btrfs_get_root_ref(), so this change may not fix the case triggered by sy ---truncated---

Assessing the Risk of CVE-2024-26792

Access Complexity Graph

The exploitability of CVE-2024-26792 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2024-26792

CVE-2024-26792 presents an accessible attack vector with minimal effort required. Restricting access controls and implementing security updates are critical to reducing exploitation risks.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2024-26792, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2024-26792, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: High
    Exploiting CVE-2024-26792 can result in unauthorized access to sensitive data, severely compromising data privacy.
  • Integrity: High
    CVE-2024-26792 could allow unauthorized modifications to data, potentially affecting system reliability and trust.
  • Availability: High
    CVE-2024-26792 can disrupt system operations, potentially causing complete denial of service (DoS).

Exploit Prediction Scoring System (EPSS)

The EPSS score estimates the probability that this vulnerability will be exploited in the near future.

EPSS Score: 0.042% (probability of exploit)

EPSS Percentile: 5.07% (lower percentile = lower relative risk)
This vulnerability is less risky than approximately 94.93% of others.

CVE-2024-26792 References

External References

CWE Common Weakness Enumeration

CWE-415

Vulnerable Configurations

  • cpe:2.3:o:linux:linux_kernel:5.10.210:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.210:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.211:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.211:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.212:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.212:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.213:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.213:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.214:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.214:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.215:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.215:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.216:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.216:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.217:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.217:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.218:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.218:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.219:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.219:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.220:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.220:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.221:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.221:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.222:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.222:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.223:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.223:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.224:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.224:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.225:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.225:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.226:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.226:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.227:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.227:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.229:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.229:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.230:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.230:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.10.244:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.10.244:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.149:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.149:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.150:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.150:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.151:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.151:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.152:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.152:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.153:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.153:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.154:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.154:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.155:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.155:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.156:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.156:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.157:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.157:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.158:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.158:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.159:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.159:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.160:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.160:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.161:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.161:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.162:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.162:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.163:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.163:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.164:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.164:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.165:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.165:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.166:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.166:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.167:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.167:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.168:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.168:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.170:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.170:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.171:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.171:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.15.172:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.15.172:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1.79:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1.79:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1.80:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1.80:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.18:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.18:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.19:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.19:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.20:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.20:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.8:*:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2024-26792: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-3103 – The CLEVER - HTML5 Radio Player With History - Shoutcast and Icecast - Elementor Widget Addon plugin for WordPress is vulnerable to arbitrary file ...
  • CVE-2025-3275 – The Themesflat Addons For Elementor plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the TF E Slider widget in all versions up...
  • CVE-2025-1457 – The Element Pack Addons for Elementor – Free Templates and Widgets for Your WordPress Websites plugin for WordPress is vulnerable to Stored Cross-S...
  • CVE-2025-1093 – The AIHub theme for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the generate_image function in all ver...
  • CVE-2025-3284 – The User Registration & Membership – Custom Registration Form, Login Form, and User Profile plugin for WordPress is vulnerable to Cross-Site Reques...