Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2024-56582 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: fix use-after-free in btrfs_encoded_read_endio() Shinichiro reported the following use-after free that sometimes is happening in our CI system when running fstests' btrfs/284 on a TCMU runner device: BUG: KASAN: slab-use-after-free in lock_release+0x708/0x780 Read of size 8 at addr ffff888106a83f18 by task kworker/u80:6/219 CPU: 8 UID: 0 PID: 219 Comm: kworker/u80:6 Not tainted 6.12.0-rc6-kts+ #15 Hardware name: Supermicro Super Server/X11SPi-TF, BIOS 3.3 02/21/2020 Workqueue: btrfs-endio btrfs_end_bio_work [btrfs] Call Trace: <TASK> dump_stack_lvl+0x6e/0xa0 ? lock_release+0x708/0x780 print_report+0x174/0x505 ? lock_release+0x708/0x780 ? __virt_addr_valid+0x224/0x410 ? lock_release+0x708/0x780 kasan_report+0xda/0x1b0 ? lock_release+0x708/0x780 ? __wake_up+0x44/0x60 lock_release+0x708/0x780 ? __pfx_lock_release+0x10/0x10 ? __pfx_do_raw_spin_lock+0x10/0x10 ? lock_is_held_type+0x9a/0x110 _raw_spin_unlock_irqrestore+0x1f/0x60 __wake_up+0x44/0x60 btrfs_encoded_read_endio+0x14b/0x190 [btrfs] btrfs_check_read_bio+0x8d9/0x1360 [btrfs] ? lock_release+0x1b0/0x780 ? trace_lock_acquire+0x12f/0x1a0 ? __pfx_btrfs_check_read_bio+0x10/0x10 [btrfs] ? process_one_work+0x7e3/0x1460 ? lock_acquire+0x31/0xc0 ? process_one_work+0x7e3/0x1460 process_one_work+0x85c/0x1460 ? __pfx_process_one_work+0x10/0x10 ? assign_work+0x16c/0x240 worker_thread+0x5e6/0xfc0 ? __pfx_worker_thread+0x10/0x10 kthread+0x2c3/0x3a0 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x31/0x70 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 </TASK> Allocated by task 3661: kasan_save_stack+0x30/0x50 kasan_save_track+0x14/0x30 __kasan_kmalloc+0xaa/0xb0 btrfs_encoded_read_regular_fill_pages+0x16c/0x6d0 [btrfs] send_extent_data+0xf0f/0x24a0 [btrfs] process_extent+0x48a/0x1830 [btrfs] changed_cb+0x178b/0x2ea0 [btrfs] btrfs_ioctl_send+0x3bf9/0x5c20 [btrfs] _btrfs_ioctl_send+0x117/0x330 [btrfs] btrfs_ioctl+0x184a/0x60a0 [btrfs] __x64_sys_ioctl+0x12e/0x1a0 do_syscall_64+0x95/0x180 entry_SYSCALL_64_after_hwframe+0x76/0x7e Freed by task 3661: kasan_save_stack+0x30/0x50 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3b/0x70 __kasan_slab_free+0x4f/0x70 kfree+0x143/0x490 btrfs_encoded_read_regular_fill_pages+0x531/0x6d0 [btrfs] send_extent_data+0xf0f/0x24a0 [btrfs] process_extent+0x48a/0x1830 [btrfs] changed_cb+0x178b/0x2ea0 [btrfs] btrfs_ioctl_send+0x3bf9/0x5c20 [btrfs] _btrfs_ioctl_send+0x117/0x330 [btrfs] btrfs_ioctl+0x184a/0x60a0 [btrfs] __x64_sys_ioctl+0x12e/0x1a0 do_syscall_64+0x95/0x180 entry_SYSCALL_64_after_hwframe+0x76/0x7e The buggy address belongs to the object at ffff888106a83f00 which belongs to the cache kmalloc-rnd-07-96 of size 96 The buggy address is located 24 bytes inside of freed 96-byte region [ffff888106a83f00, ffff888106a83f60) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888106a83800 pfn:0x106a83 flags: 0x17ffffc0000000(node=0|zone=2|lastcpupid=0x1fffff) page_type: f5(slab) raw: 0017ffffc0000000 ffff888100053680 ffffea0004917200 0000000000000004 raw: ffff888106a83800 0000000080200019 00000001f5000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888106a83e00: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888106a83e80: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff888106a83f00: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff888106a83f80: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888106a84000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== Further analyzing the trace and ---truncated---

Distribution advisory

This page covers CVE-2024-56582 as tracked by Ubuntu, for the package linux. The fix is available in version 6.8.0-56.58; 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 high, integrity high, 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:H/I:H/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: High — total loss, or loss the attacker controls.
  • Integrity impact: High — total loss, or loss the attacker controls.
  • Availability impact: High — total loss, or loss the attacker controls.

Affected software

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

  • linux (fixed in 6.8.0-56.58)
  • linux-allwinner-5.19
  • linux-aws (fixed in 6.8.0-1025.27)
  • 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-1027.29~22.04.1)
  • linux-azure (fixed in 6.8.0-1025.30)
  • 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-1025.30~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-1014.15)
  • linux-fips (fixed in 6.8.0-78.78+fips1)
  • linux-gcp (fixed in 6.8.0-1026.28)
  • 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-1026.28~22.04.1)
  • linux-gke (fixed in 6.8.0-1021.25)
  • linux-gke-4.15
  • linux-gke-5.15
  • linux-gke-5.4
  • linux-gkeop (fixed in 6.8.0-1008.10)
  • 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-57.59~22.04.1)
  • linux-hwe-edge
  • linux-ibm (fixed in 6.8.0-1022.22)
  • linux-ibm-6.8 (fixed in 6.8.0-1023.23~22.04.1)
  • linux-intel-5.13
  • linux-intel-iot-realtime
  • linux-lowlatency (fixed in 6.8.0-56.58.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-56.58.1~22.04.1)
  • linux-nvidia (fixed in 6.8.0-1024.27)
  • 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-1024.27~22.04.1)
  • linux-nvidia-lowlatency (fixed in 6.8.0-1024.27.1)
  • linux-nvidia-tegra (fixed in 6.8.0-1004.4)
  • 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-1024.24)
  • linux-oracle (fixed in 6.8.0-1022.23)
  • 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-1022.23~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-1018.19)
  • linux-realtime-6.8 (fixed in 6.8.1-1018.19~22.04.1)
  • linux-riscv (fixed in 6.8.0-56.58.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-56.58.1~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 27 December 2024 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)
git.kernel.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-56582 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:H/I:H/A:H
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2024-12-27
Updated 2026-08-20
Modified 2026-04-22
Fix URL N/A

Affected Packages

Software From version Fixed in
linux — 6.8.0-56.58
linux-allwinner-5.19 — —
linux-aws — 6.8.0-1025.27
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-1027.29~22.04.1
linux-azure — 6.8.0-1025.30
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-1025.30~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-1014.15
linux-fips — 6.8.0-78.78+fips1
linux-gcp — 6.8.0-1026.28
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-1026.28~22.04.1
linux-gke — 6.8.0-1021.25
linux-gke-4.15 — —
linux-gke-5.15 — —
linux-gke-5.4 — —
linux-gkeop — 6.8.0-1008.10
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-57.59~22.04.1
linux-hwe-edge — —
linux-ibm — 6.8.0-1022.22
linux-ibm-6.8 — 6.8.0-1023.23~22.04.1
linux-intel-5.13 — —
linux-intel-iot-realtime — —
linux-lowlatency — 6.8.0-56.58.1
linux-lowlatency-hwe-5.19 — —
linux-lowlatency-hwe-6.2 — —
linux-lowlatency-hwe-6.5 — —
linux-lowlatency-hwe-6.8 — 6.8.0-56.58.1~22.04.1
linux-nvidia — 6.8.0-1024.27
linux-nvidia-6.11 — 6.11.0-1007.7
linux-nvidia-6.2 — —
linux-nvidia-6.5 — —
linux-nvidia-6.8 — 6.8.0-1024.27~22.04.1
linux-nvidia-lowlatency — 6.8.0-1024.27.1
linux-nvidia-tegra — 6.8.0-1004.4
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-1024.24
linux-oracle — 6.8.0-1022.23
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-1022.23~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-1018.19
linux-realtime-6.8 — 6.8.1-1018.19~22.04.1
linux-riscv — 6.8.0-56.58.1
linux-riscv-5.11 — —
linux-riscv-5.19 — —
linux-riscv-5.8 — —
linux-riscv-6.5 — —
linux-riscv-6.8 — 6.8.0-56.58.1~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

Site Security Check

Is linux part of your stack?

UBUNTU-CVE-2024-56582 is rated CVSS 7.8 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

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
✓