Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2024-56758 on Ubuntu — linux

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: check folio mapping after unlock in relocate_one_folio() When we call btrfs_read_folio() to bring a folio uptodate, we unlock the folio. The result of that is that a different thread can modify the mapping (like remove it with invalidate) before we call folio_lock(). This results in an invalid page and we need to try again. In particular, if we are relocating concurrently with aborting a transaction, this can result in a crash like the following: BUG: kernel NULL pointer dereference, address: 0000000000000000 PGD 0 P4D 0 Oops: 0000 [#1] SMP CPU: 76 PID: 1411631 Comm: kworker/u322:5 Workqueue: events_unbound btrfs_reclaim_bgs_work RIP: 0010:set_page_extent_mapped+0x20/0xb0 RSP: 0018:ffffc900516a7be8 EFLAGS: 00010246 RAX: ffffea009e851d08 RBX: ffffea009e0b1880 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffc900516a7b90 RDI: ffffea009e0b1880 RBP: 0000000003573000 R08: 0000000000000001 R09: ffff88c07fd2f3f0 R10: 0000000000000000 R11: 0000194754b575be R12: 0000000003572000 R13: 0000000003572fff R14: 0000000000100cca R15: 0000000005582fff FS: 0000000000000000(0000) GS:ffff88c07fd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000407d00f002 CR4: 00000000007706f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 PKRU: 55555554 Call Trace: <TASK> ? __die+0x78/0xc0 ? page_fault_oops+0x2a8/0x3a0 ? __switch_to+0x133/0x530 ? wq_worker_running+0xa/0x40 ? exc_page_fault+0x63/0x130 ? asm_exc_page_fault+0x22/0x30 ? set_page_extent_mapped+0x20/0xb0 relocate_file_extent_cluster+0x1a7/0x940 relocate_data_extent+0xaf/0x120 relocate_block_group+0x20f/0x480 btrfs_relocate_block_group+0x152/0x320 btrfs_relocate_chunk+0x3d/0x120 btrfs_reclaim_bgs_work+0x2ae/0x4e0 process_scheduled_works+0x184/0x370 worker_thread+0xc6/0x3e0 ? blk_add_timer+0xb0/0xb0 kthread+0xae/0xe0 ? flush_tlb_kernel_range+0x90/0x90 ret_from_fork+0x2f/0x40 ? flush_tlb_kernel_range+0x90/0x90 ret_from_fork_asm+0x11/0x20 </TASK> This occurs because cleanup_one_transaction() calls destroy_delalloc_inodes() which calls invalidate_inode_pages2() which takes the folio_lock before setting mapping to NULL. We fail to check this, and subsequently call set_extent_mapping(), which assumes that mapping != NULL (in fact it asserts that in debug mode) Note that the "fixes" patch here is not the one that introduced the race (the very first iteration of this code from 2009) but a more recent change that made this particular crash happen in practice.

Distribution advisory

This page covers CVE-2024-56758 as tracked by Ubuntu, for the package linux. The fix is available in version 6.8.0-60.63; earlier versions remain affected.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

  • Attack vector: Local — a local account, shell or session on the host is needed.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: None.
  • Integrity impact: None.
  • Availability impact: High — total loss, or loss the attacker controls.

Affected software

UBUNTU-CVE-2024-56758 is recorded against 105 packages.

  • linux (fixed in 6.8.0-60.63)
  • linux-allwinner-5.19
  • linux-aws (fixed in 6.8.0-1029.31)
  • linux-aws-5.0
  • linux-aws-5.11
  • linux-aws-5.13
  • linux-aws-5.19
  • linux-aws-5.3
  • linux-aws-5.8
  • linux-aws-6.2
  • linux-aws-6.5
  • linux-aws-6.8 (fixed in 6.8.0-1029.31~22.04.1)
  • linux-azure (fixed in 6.8.0-1029.34)
  • linux-azure-5.11
  • linux-azure-5.13
  • linux-azure-5.19
  • linux-azure-5.3
  • linux-azure-5.8
  • linux-azure-6.11 (fixed in 6.11.0-1012.12~24.04.1)
  • linux-azure-6.2
  • linux-azure-6.5
  • linux-azure-6.8 (fixed in 6.8.0-1029.34~22.04.1)
  • linux-azure-edge
  • linux-azure-fde
Show the remaining 81 packages
  • linux-azure-fde-5.19
  • linux-azure-fde-6.2
  • linux-azure-nvidia (fixed in 6.8.0-1016.17)
  • linux-fips (fixed in 6.8.0-78.78+fips1)
  • linux-gcp (fixed in 6.8.0-1030.32)
  • linux-gcp-5.11
  • linux-gcp-5.13
  • linux-gcp-5.19
  • linux-gcp-5.3
  • linux-gcp-5.8
  • linux-gcp-6.11 (fixed in 6.11.0-1011.11~24.04.1)
  • linux-gcp-6.2
  • linux-gcp-6.5
  • linux-gcp-6.8 (fixed in 6.8.0-1030.32~22.04.1)
  • linux-gke (fixed in 6.8.0-1025.29)
  • linux-gke-4.15
  • linux-gke-5.15
  • linux-gke-5.4
  • linux-gkeop (fixed in 6.8.0-1012.14)
  • linux-gkeop-5.15
  • linux-gkeop-5.4
  • linux-hwe
  • linux-hwe-5.11
  • linux-hwe-5.13
  • linux-hwe-5.19
  • linux-hwe-5.8
  • linux-hwe-6.11 (fixed in 6.11.0-21.21~24.04.1)
  • linux-hwe-6.2
  • linux-hwe-6.5
  • linux-hwe-6.8 (fixed in 6.8.0-60.63~22.04.1)
  • linux-hwe-edge
  • linux-ibm (fixed in 6.8.0-1026.26)
  • linux-ibm-6.8 (fixed in 6.8.0-1026.26~22.04.1)
  • linux-intel-5.13
  • linux-intel-iot-realtime
  • linux-lowlatency (fixed in 6.8.0-60.63.1)
  • linux-lowlatency-hwe-5.19
  • linux-lowlatency-hwe-6.2
  • linux-lowlatency-hwe-6.5
  • linux-lowlatency-hwe-6.8 (fixed in 6.8.0-60.63.1~22.04.1)
  • linux-nvidia (fixed in 6.8.0-1028.31)
  • linux-nvidia-6.11 (fixed in 6.11.0-1007.7)
  • linux-nvidia-6.2
  • linux-nvidia-6.5
  • linux-nvidia-6.8 (fixed in 6.8.0-1028.31~22.04.1)
  • linux-nvidia-lowlatency (fixed in 6.8.0-1028.31.1)
  • linux-nvidia-tegra (fixed in 6.8.0-1008.8)
  • linux-oem
  • linux-oem-5.10
  • linux-oem-5.13
  • linux-oem-5.14
  • linux-oem-5.17
  • linux-oem-5.6
  • linux-oem-6.0
  • linux-oem-6.1
  • linux-oem-6.11 (fixed in 6.11.0-1017.17)
  • linux-oem-6.5
  • linux-oem-6.8 (fixed in 6.8.0-1028.28)
  • linux-oracle (fixed in 6.8.0-1026.27)
  • linux-oracle-5.0
  • linux-oracle-5.11
  • linux-oracle-5.13
  • linux-oracle-5.3
  • linux-oracle-5.8
  • linux-oracle-6.5
  • linux-oracle-6.8 (fixed in 6.8.0-1026.27~22.04.1)
  • linux-raspi (fixed in 6.8.0-1028.32)
  • linux-raspi-realtime (fixed in 6.8.0-2023.24)
  • linux-raspi2
  • linux-realtime (fixed in 6.8.1-1022.23)
  • linux-realtime-6.8 (fixed in 6.8.1-1022.23~22.04.1)
  • linux-riscv (fixed in 6.8.0-60.63.1)
  • linux-riscv-5.11
  • linux-riscv-5.19
  • linux-riscv-5.8
  • linux-riscv-6.5
  • linux-riscv-6.8 (fixed in 6.8.0-62.65~22.04.1)
  • linux-starfive-5.19
  • linux-starfive-6.2
  • linux-starfive-6.5
  • linux-xilinx (fixed in 6.8.0-1017.18)

Timeline and source

Published on 6 January 2025 and last revised on 22 April 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

ubuntu.com (Report)
www.cve.org (Report)
git.kernel.org (Report)
ubuntu.com (Advisory)
ubuntu.com (Advisory)
ubuntu.com (Advisory)
ubuntu.com (Advisory)
ubuntu.com (Advisory)
ubuntu.com (Advisory)
ubuntu.com (Advisory)
ubuntu.com (Advisory)
ubuntu.com (Advisory)
ubuntu.com (Advisory)
ubuntu.com (Advisory)
ubuntu.com (Advisory)
ubuntu.com (Advisory)
ubuntu.com (Advisory)
ubuntu.com (Advisory)
ubuntu.com (Advisory)

Other advisories for this package

linux has other advisories on record. If you are patching this one, these are worth checking on the same host:

CVE-2024-56758 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2025-01-06
Updated 2026-08-20
Modified 2026-04-22
Fix URL N/A

Affected Packages

Software From version Fixed in
linux — 6.8.0-60.63
linux-allwinner-5.19 — —
linux-aws — 6.8.0-1029.31
linux-aws-5.0 — —
linux-aws-5.11 — —
linux-aws-5.13 — —
linux-aws-5.19 — —
linux-aws-5.3 — —
linux-aws-5.8 — —
linux-aws-6.2 — —
linux-aws-6.5 — —
linux-aws-6.8 — 6.8.0-1029.31~22.04.1
linux-azure — 6.8.0-1029.34
linux-azure-5.11 — —
linux-azure-5.13 — —
linux-azure-5.19 — —
linux-azure-5.3 — —
linux-azure-5.8 — —
linux-azure-6.11 — 6.11.0-1012.12~24.04.1
linux-azure-6.2 — —
linux-azure-6.5 — —
linux-azure-6.8 — 6.8.0-1029.34~22.04.1
linux-azure-edge — —
linux-azure-fde — —
linux-azure-fde-5.19 — —
linux-azure-fde-6.2 — —
linux-azure-nvidia — 6.8.0-1016.17
linux-fips — 6.8.0-78.78+fips1
linux-gcp — 6.8.0-1030.32
linux-gcp-5.11 — —
linux-gcp-5.13 — —
linux-gcp-5.19 — —
linux-gcp-5.3 — —
linux-gcp-5.8 — —
linux-gcp-6.11 — 6.11.0-1011.11~24.04.1
linux-gcp-6.2 — —
linux-gcp-6.5 — —
linux-gcp-6.8 — 6.8.0-1030.32~22.04.1
linux-gke — 6.8.0-1025.29
linux-gke-4.15 — —
linux-gke-5.15 — —
linux-gke-5.4 — —
linux-gkeop — 6.8.0-1012.14
linux-gkeop-5.15 — —
linux-gkeop-5.4 — —
linux-hwe — —
linux-hwe-5.11 — —
linux-hwe-5.13 — —
linux-hwe-5.19 — —
linux-hwe-5.8 — —
linux-hwe-6.11 — 6.11.0-21.21~24.04.1
linux-hwe-6.2 — —
linux-hwe-6.5 — —
linux-hwe-6.8 — 6.8.0-60.63~22.04.1
linux-hwe-edge — —
linux-ibm — 6.8.0-1026.26
linux-ibm-6.8 — 6.8.0-1026.26~22.04.1
linux-intel-5.13 — —
linux-intel-iot-realtime — —
linux-lowlatency — 6.8.0-60.63.1
linux-lowlatency-hwe-5.19 — —
linux-lowlatency-hwe-6.2 — —
linux-lowlatency-hwe-6.5 — —
linux-lowlatency-hwe-6.8 — 6.8.0-60.63.1~22.04.1
linux-nvidia — 6.8.0-1028.31
linux-nvidia-6.11 — 6.11.0-1007.7
linux-nvidia-6.2 — —
linux-nvidia-6.5 — —
linux-nvidia-6.8 — 6.8.0-1028.31~22.04.1
linux-nvidia-lowlatency — 6.8.0-1028.31.1
linux-nvidia-tegra — 6.8.0-1008.8
linux-oem — —
linux-oem-5.10 — —
linux-oem-5.13 — —
linux-oem-5.14 — —
linux-oem-5.17 — —
linux-oem-5.6 — —
linux-oem-6.0 — —
linux-oem-6.1 — —
linux-oem-6.11 — 6.11.0-1017.17
linux-oem-6.5 — —
linux-oem-6.8 — 6.8.0-1028.28
linux-oracle — 6.8.0-1026.27
linux-oracle-5.0 — —
linux-oracle-5.11 — —
linux-oracle-5.13 — —
linux-oracle-5.3 — —
linux-oracle-5.8 — —
linux-oracle-6.5 — —
linux-oracle-6.8 — 6.8.0-1026.27~22.04.1
linux-raspi — 6.8.0-1028.32
linux-raspi-realtime — 6.8.0-2023.24
linux-raspi2 — —
linux-realtime — 6.8.1-1022.23
linux-realtime-6.8 — 6.8.1-1022.23~22.04.1
linux-riscv — 6.8.0-60.63.1
linux-riscv-5.11 — —
linux-riscv-5.19 — —
linux-riscv-5.8 — —
linux-riscv-6.5 — —
linux-riscv-6.8 — 6.8.0-62.65~22.04.1
linux-starfive-5.19 — —
linux-starfive-6.2 — —
linux-starfive-6.5 — —
linux-xilinx — 6.8.0-1017.18

References

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in linux

UBUNTU-CVE-2024-56758 is rated CVSS 5.5 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesUbuntuUbuntu 2024
✓