Upstream information
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.
SUSE information
Overall state of this security issue: New
This issue is currently rated as having moderate severity.
No SUSE Bugzilla entries cross referenced. No SUSE Security Announcements cross referenced.Status of this issue by product and package
Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.
Product(s) | Source package | State |
---|---|---|
Products under general support and receiving all security fixes. | ||
SUSE Linux Enterprise Desktop 15 SP6 | kernel-default | Analysis |
SUSE Linux Enterprise Desktop 15 SP6 | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP6 | kernel-default | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP6 | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP6 | kernel-source-azure | Analysis |
SUSE Linux Enterprise Live Patching 15 SP6 | kernel-default | Analysis |
SUSE Linux Enterprise Live Patching 15 SP6 | kernel-source | Analysis |
SUSE Linux Enterprise Micro 5.1 | kernel-default | Analysis |
SUSE Linux Enterprise Micro 5.1 | kernel-rt | Analysis |
SUSE Linux Enterprise Micro 5.1 | kernel-source | Analysis |
SUSE Linux Enterprise Micro 5.1 | kernel-source-rt | Analysis |
SUSE Linux Enterprise Micro 5.2 | kernel-default | Analysis |
SUSE Linux Enterprise Micro 5.2 | kernel-rt | Analysis |
SUSE Linux Enterprise Micro 5.2 | kernel-source | Analysis |
SUSE Linux Enterprise Micro 5.2 | kernel-source-rt | Analysis |
SUSE Linux Enterprise Micro 5.3 | kernel-default | Analysis |
SUSE Linux Enterprise Micro 5.3 | kernel-rt | Analysis |
SUSE Linux Enterprise Micro 5.3 | kernel-source | Analysis |
SUSE Linux Enterprise Micro 5.3 | kernel-source-rt | Analysis |
SUSE Linux Enterprise Micro 5.4 | kernel-default | Analysis |
SUSE Linux Enterprise Micro 5.4 | kernel-rt | Analysis |
SUSE Linux Enterprise Micro 5.4 | kernel-source | Analysis |
SUSE Linux Enterprise Micro 5.4 | kernel-source-rt | Analysis |
SUSE Linux Enterprise Micro 5.5 | kernel-default | Analysis |
SUSE Linux Enterprise Micro 5.5 | kernel-source | Analysis |
SUSE Linux Enterprise Micro 5.5 | kernel-source-rt | Analysis |
SUSE Linux Enterprise Module for Basesystem 15 SP6 | kernel-default | Analysis |
SUSE Linux Enterprise Module for Basesystem 15 SP6 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Development Tools 15 SP6 | kernel-default | Analysis |
SUSE Linux Enterprise Module for Development Tools 15 SP6 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Public Cloud 15 SP6 | kernel-source-azure | Analysis |
SUSE Linux Enterprise Real Time 15 SP6 | kernel-source-rt | Analysis |
SUSE Linux Enterprise Server 15 SP6 | kernel-default | Analysis |
SUSE Linux Enterprise Server 15 SP6 | kernel-source | Analysis |
SUSE Linux Enterprise Server 15 SP6 | kernel-source-azure | Analysis |
SUSE Linux Enterprise Server for SAP Applications 15 SP6 | kernel-default | Analysis |
SUSE Linux Enterprise Server for SAP Applications 15 SP6 | kernel-source | Analysis |
SUSE Linux Enterprise Server for SAP Applications 15 SP6 | kernel-source-azure | Analysis |
SUSE Linux Micro 6.0 | kernel-default | Analysis |
SUSE Linux Micro 6.0 | kernel-source | Analysis |
SUSE Linux Micro 6.0 | kernel-source-rt | Analysis |
SUSE Linux Micro 6.1 | kernel-default | Analysis |
SUSE Linux Micro 6.1 | kernel-source | Analysis |
SUSE Linux Micro 6.1 | kernel-source-rt | Analysis |
SUSE Manager Proxy 4.3 | kernel-default | Analysis |
SUSE Manager Proxy 4.3 | kernel-source | Analysis |
SUSE Manager Retail Branch Server 4.3 | kernel-default | Analysis |
SUSE Manager Retail Branch Server 4.3 | kernel-source | Analysis |
SUSE Manager Server 4.3 | kernel-default | Analysis |
SUSE Manager Server 4.3 | kernel-source | Analysis |
SUSE Real Time Module 15 SP6 | kernel-source-rt | Analysis |
openSUSE Leap 15.6 | kernel-default | Analysis |
openSUSE Leap 15.6 | kernel-source | Analysis |
openSUSE Leap 15.6 | kernel-source-azure | Analysis |
openSUSE Leap 15.6 | kernel-source-rt | Analysis |
Products under Long Term Service Pack support and receiving important and critical security fixes. | ||
SUSE Linux Enterprise Desktop 15 SP4 | kernel-source | Analysis |
SUSE Linux Enterprise High Availability Extension 12 SP5 | kernel-default | Analysis |
SUSE Linux Enterprise High Availability Extension 12 SP5 | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP3 | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | kernel-default | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP4 | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | kernel-default | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP5 | kernel-default | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP5 | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP5 | kernel-source-azure | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | kernel-default | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | kernel-default | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise Live Patching 12 SP5 | kernel-default | Analysis |
SUSE Linux Enterprise Live Patching 12 SP5 | kernel-source | Analysis |
SUSE Linux Enterprise Live Patching 15 SP3 | kernel-default | Analysis |
SUSE Linux Enterprise Live Patching 15 SP3 | kernel-source | Analysis |
SUSE Linux Enterprise Live Patching 15 SP4 | kernel-default | Analysis |
SUSE Linux Enterprise Live Patching 15 SP4 | kernel-source | Analysis |
SUSE Linux Enterprise Live Patching 15 SP5 | kernel-default | Analysis |
SUSE Linux Enterprise Live Patching 15 SP5 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Basesystem 15 SP3 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Basesystem 15 SP4 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Basesystem 15 SP5 | kernel-default | Analysis |
SUSE Linux Enterprise Module for Basesystem 15 SP5 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Development Tools 15 SP3 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Development Tools 15 SP4 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Development Tools 15 SP5 | kernel-default | Analysis |
SUSE Linux Enterprise Module for Development Tools 15 SP5 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Legacy 15 SP5 | kernel-default | Analysis |
SUSE Linux Enterprise Module for Legacy 15 SP5 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Public Cloud 15 SP5 | kernel-source-azure | Analysis |
SUSE Linux Enterprise Server 11 SP4 LTSS EXTREME CORE | kernel-default | Analysis |
SUSE Linux Enterprise Server 11 SP4 LTSS EXTREME CORE | kernel-source | Analysis |
SUSE Linux Enterprise Server 12 SP5 | kernel-source | Analysis |
SUSE Linux Enterprise Server 12 SP5 | kernel-source-azure | Analysis |
SUSE Linux Enterprise Server 12 SP5-LTSS | kernel-default | Analysis |
SUSE Linux Enterprise Server 12 SP5-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise Server 12 SP5-LTSS | kernel-source-azure | Analysis |
SUSE Linux Enterprise Server 15 SP3 | kernel-source | Analysis |
SUSE Linux Enterprise Server 15 SP3-LTSS | kernel-default | Analysis |
SUSE Linux Enterprise Server 15 SP3-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise Server 15 SP4 | kernel-source | Analysis |
SUSE Linux Enterprise Server 15 SP4-LTSS | kernel-default | Analysis |
SUSE Linux Enterprise Server 15 SP4-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise Server 15 SP5 | kernel-default | Analysis |
SUSE Linux Enterprise Server 15 SP5 | kernel-source | Analysis |
SUSE Linux Enterprise Server 15 SP5 | kernel-source-azure | Analysis |
SUSE Linux Enterprise Server 15 SP5-LTSS | kernel-default | Analysis |
SUSE Linux Enterprise Server 15 SP5-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | kernel-source | Analysis |
SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | kernel-source-azure | Analysis |
SUSE Linux Enterprise Server for SAP Applications 12 SP5 | kernel-default | Analysis |
SUSE Linux Enterprise Server for SAP Applications 12 SP5 | kernel-source | Analysis |
SUSE Linux Enterprise Server for SAP Applications 15 SP3 | kernel-default | Analysis |
SUSE Linux Enterprise Server for SAP Applications 15 SP3 | kernel-source | Analysis |
SUSE Linux Enterprise Server for SAP Applications 15 SP4 | kernel-default | Analysis |
SUSE Linux Enterprise Server for SAP Applications 15 SP4 | kernel-source | Analysis |
SUSE Linux Enterprise Server for SAP Applications 15 SP5 | kernel-default | Analysis |
SUSE Linux Enterprise Server for SAP Applications 15 SP5 | kernel-source | Analysis |
SUSE Linux Enterprise Server for SAP Applications 15 SP5 | kernel-source-azure | Analysis |
Products past their end of life and not receiving proactive updates anymore. | ||
HPE Helion OpenStack 8 | kernel-source | Analysis |
SUSE CaaS Platform 4.0 | kernel-source | Analysis |
SUSE CaaS Platform Toolchain 3 | kernel-source | Analysis |
SUSE Enterprise Storage 6 | kernel-source | Analysis |
SUSE Enterprise Storage 7 | kernel-source | Analysis |
SUSE Enterprise Storage 7.1 | kernel-source | Analysis |
SUSE Linux Enterprise Desktop 11 SP4 | kernel-source | Analysis |
SUSE Linux Enterprise Desktop 12 SP2 | kernel-source | Analysis |
SUSE Linux Enterprise Desktop 12 SP3 | kernel-source | Analysis |
SUSE Linux Enterprise Desktop 12 SP4 | kernel-source | Analysis |
SUSE Linux Enterprise Desktop 15 | kernel-source | Analysis |
SUSE Linux Enterprise Desktop 15 SP1 | kernel-source | Analysis |
SUSE Linux Enterprise Desktop 15 SP2 | kernel-source | Analysis |
SUSE Linux Enterprise Desktop 15 SP3 | kernel-source | Analysis |
SUSE Linux Enterprise Desktop 15 SP5 | kernel-default | Analysis |
SUSE Linux Enterprise Desktop 15 SP5 | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP1 | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP2 | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15-ESPOS | kernel-source | Analysis |
SUSE Linux Enterprise High Performance Computing 15-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise Micro 5.0 | kernel-default | Analysis |
SUSE Linux Enterprise Module for Basesystem 15 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Basesystem 15 SP1 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Basesystem 15 SP2 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Development Tools 15 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Development Tools 15 SP1 | kernel-source | Analysis |
SUSE Linux Enterprise Module for Development Tools 15 SP2 | kernel-source | Analysis |
SUSE Linux Enterprise Point of Sale 12 SP2-CLIENT | kernel-source | Analysis |
SUSE Linux Enterprise Real Time 15 SP2 | kernel-source | Analysis |
SUSE Linux Enterprise Real Time 15 SP3 | kernel-source | Analysis |
SUSE Linux Enterprise Real Time 15 SP3 | kernel-source-rt | Analysis |
SUSE Linux Enterprise Real Time 15 SP4 | kernel-source | Analysis |
SUSE Linux Enterprise Real Time 15 SP4 | kernel-source-rt | Analysis |
SUSE Linux Enterprise Real Time 15 SP5 | kernel-source-rt | Analysis |
SUSE Linux Enterprise Server 11 SP4 | kernel-source | Analysis |
SUSE Linux Enterprise Server 11 SP4 LTSS | kernel-default | Analysis |
SUSE Linux Enterprise Server 11 SP4 LTSS | kernel-source | Analysis |
SUSE Linux Enterprise Server 11 SP4-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise Server 12 SP2 | kernel-source | Analysis |
SUSE Linux Enterprise Server 12 SP2-BCL | kernel-source | Analysis |
SUSE Linux Enterprise Server 12 SP2-ESPOS | kernel-source | Analysis |
SUSE Linux Enterprise Server 12 SP2-LTSS | kernel-default | Analysis |
SUSE Linux Enterprise Server 12 SP2-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise Server 12 SP3 | kernel-source | Analysis |
SUSE Linux Enterprise Server 12 SP3-BCL | kernel-source | Analysis |
SUSE Linux Enterprise Server 12 SP3-ESPOS | kernel-source | Analysis |
SUSE Linux Enterprise Server 12 SP3-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise Server 12 SP4 | kernel-source | Analysis |
SUSE Linux Enterprise Server 12 SP4-ESPOS | kernel-source | Analysis |
SUSE Linux Enterprise Server 12 SP4-LTSS | kernel-default | Analysis |
SUSE Linux Enterprise Server 12 SP4-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise Server 15 | kernel-source | Analysis |
SUSE Linux Enterprise Server 15 SP1 | kernel-source | Analysis |
SUSE Linux Enterprise Server 15 SP1-BCL | kernel-source | Analysis |
SUSE Linux Enterprise Server 15 SP1-LTSS | kernel-default | Analysis |
SUSE Linux Enterprise Server 15 SP1-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise Server 15 SP2 | kernel-source | Analysis |
SUSE Linux Enterprise Server 15 SP2-BCL | kernel-source | Analysis |
SUSE Linux Enterprise Server 15 SP2-LTSS | kernel-default | Analysis |
SUSE Linux Enterprise Server 15 SP2-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise Server 15 SP3-BCL | kernel-source | Analysis |
SUSE Linux Enterprise Server 15-LTSS | kernel-default | Analysis |
SUSE Linux Enterprise Server 15-LTSS | kernel-source | Analysis |
SUSE Linux Enterprise Server for Raspberry Pi 12 SP2 | kernel-source | Analysis |
SUSE Linux Enterprise Server for SAP Applications 12 SP2 | kernel-source | Analysis |
SUSE Linux Enterprise Server for SAP Applications 12 SP3 | kernel-source | Analysis |
SUSE Linux Enterprise Server for SAP Applications 12 SP4 | kernel-source | Analysis |
SUSE Linux Enterprise Server for SAP Applications 15 | kernel-source | Analysis |
SUSE Linux Enterprise Server for SAP Applications 15 SP1 | kernel-source | Analysis |
SUSE Linux Enterprise Server for SAP Applications 15 SP2 | kernel-source | Analysis |
SUSE Manager Proxy 4.0 | kernel-source | Analysis |
SUSE Manager Proxy 4.1 | kernel-source | Analysis |
SUSE Manager Proxy 4.2 | kernel-source | Analysis |
SUSE Manager Retail Branch Server 4.0 | kernel-source | Analysis |
SUSE Manager Retail Branch Server 4.1 | kernel-source | Analysis |
SUSE Manager Retail Branch Server 4.2 | kernel-source | Analysis |
SUSE Manager Server 4.0 | kernel-source | Analysis |
SUSE Manager Server 4.1 | kernel-source | Analysis |
SUSE Manager Server 4.2 | kernel-source | Analysis |
SUSE OpenStack Cloud 7 | kernel-source | Analysis |
SUSE OpenStack Cloud 8 | kernel-source | Analysis |
SUSE OpenStack Cloud 9 | kernel-source | Analysis |
SUSE OpenStack Cloud Crowbar 8 | kernel-source | Analysis |
SUSE OpenStack Cloud Crowbar 9 | kernel-source | Analysis |
SUSE Real Time Module 15 SP3 | kernel-source-rt | Analysis |
SUSE Real Time Module 15 SP4 | kernel-source-rt | Analysis |
SUSE Real Time Module 15 SP5 | kernel-source-rt | Analysis |
openSUSE Leap 15.3 | kernel-source | Analysis |
openSUSE Leap 15.3 | kernel-source-rt | Analysis |
openSUSE Leap 15.4 | kernel-source | Analysis |
openSUSE Leap 15.4 | kernel-source-azure | Analysis |
openSUSE Leap 15.4 | kernel-source-rt | Analysis |
openSUSE Leap 15.5 | kernel-source | Analysis |
openSUSE Leap 15.5 | kernel-source-azure | Analysis |
openSUSE Leap 15.5 | kernel-source-rt | Analysis |
SUSE Timeline for this CVE
CVE page created: Mon Jan 6 20:00:20 2025CVE page last modified: Tue Jan 7 12:11:58 2025