Upstream information
Description
In the Linux kernel, the following vulnerability has been resolved:f2fs: fix to avoid updating compression context during writeback
Bai, Shuangpeng <sjb7183@psu.edu> reported a bug as below:
Oops: divide error: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 11441 Comm: syz.0.46 Not tainted 6.17.0 #1 PREEMPT(full)
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
RIP: 0010:f2fs_all_cluster_page_ready+0x106/0x550 fs/f2fs/compress.c:857
Call Trace:
<TASK>
f2fs_write_cache_pages fs/f2fs/data.c:3078 [inline]
__f2fs_write_data_pages fs/f2fs/data.c:3290 [inline]
f2fs_write_data_pages+0x1c19/0x3600 fs/f2fs/data.c:3317
do_writepages+0x38e/0x640 mm/page-writeback.c:2634
filemap_fdatawrite_wbc mm/filemap.c:386 [inline]
__filemap_fdatawrite_range mm/filemap.c:419 [inline]
file_write_and_wait_range+0x2ba/0x3e0 mm/filemap.c:794
f2fs_do_sync_file+0x6e6/0x1b00 fs/f2fs/file.c:294
generic_write_sync include/linux/fs.h:3043 [inline]
f2fs_file_write_iter+0x76e/0x2700 fs/f2fs/file.c:5259
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x7e9/0xe00 fs/read_write.c:686
ksys_write+0x19d/0x2d0 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xf7/0x470 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The bug was triggered w/ below race condition:
fsync setattr ioctl
- f2fs_do_sync_file
- file_write_and_wait_range
- f2fs_write_cache_pages
: inode is non-compressed
: cc.cluster_size =
F2FS_I(inode)->i_cluster_size = 0
- tag_pages_for_writeback
- f2fs_setattr
- truncate_setsize
- f2fs_truncate
- f2fs_fileattr_set
- f2fs_setflags_common
- set_compress_context
: F2FS_I(inode)->i_cluster_size = 4
: set_inode_flag(inode, FI_COMPRESSED_FILE)
- f2fs_compressed_file
: return true
- f2fs_all_cluster_page_ready
: "pgidx % cc->cluster_size" trigger dividing 0 issue
Let's change as below to fix this issue:
- introduce a new atomic type variable .writeback in structure f2fs_inode_info
to track the number of threads which calling f2fs_write_cache_pages().
- use .i_sem lock to protect .writeback update.
- check .writeback before update compression context in f2fs_setflags_common()
to avoid race w/ ->writepages.
SUSE information
Overall state of this security issue: Pending
This issue is currently rated as having moderate severity.
| CVSS detail | SUSE |
|---|---|
| Base Score | 4.7 |
| Vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
| Attack Vector | Local |
| Attack Complexity | High |
| Privileges Required | Low |
| User Interaction | None |
| Scope | Unchanged |
| Confidentiality Impact | None |
| Integrity Impact | None |
| Availability Impact | High |
| CVSSv3 Version | 3.1 |
| CVSS detail | SUSE |
|---|---|
| Base Score | 5.7 |
| Vector | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| Attack Vector | Local |
| Attack Complexity | Low |
| Attack Requirements | Present |
| Privileges Required | Low |
| User Interaction | None |
| Vulnerable System Confidentiality Impact | None |
| Vulnerable System Integrity Impact | None |
| Vulnerable System Availability Impact | High |
| Subsequent System Confidentiality Impact | None |
| Subsequent System Integrity Impact | None |
| Subsequent System Availability Impact | None |
| CVSSv4 Version | 4.0 |
Note from the SUSE Security Team on the kernel-default package
SUSE will no longer fix all CVEs in the Linux Kernel anymore, but declare some bug classes as won't fix. Please refer to TID 21496 for more details. SUSE Bugzilla entry: 1256581 [NEW] 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 SP7 | kernel-default | Affected |
| SUSE Linux Enterprise Desktop 15 SP7 | kernel-source | Affected |
| SUSE Linux Enterprise High Availability Extension 15 SP7 | kernel-default | Affected |
| SUSE Linux Enterprise High Availability Extension 15 SP7 | kernel-source | Affected |
| SUSE Linux Enterprise High Availability Extension 16.0 | kernel-default | Affected |
| SUSE Linux Enterprise High Availability Extension 16.0 | kernel-source | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | kernel-default | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | kernel-source | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | kernel-source-azure | Affected |
| SUSE Linux Enterprise Live Patching 15 SP7 | kernel-default | Affected |
| SUSE Linux Enterprise Live Patching 15 SP7 | kernel-source | Affected |
| SUSE Linux Enterprise Micro 5.2 | kernel-default | Not affected |
| SUSE Linux Enterprise Micro 5.2 | kernel-rt | Not affected |
| SUSE Linux Enterprise Micro 5.2 | kernel-source | Not affected |
| SUSE Linux Enterprise Micro 5.2 | kernel-source-rt | Not affected |
| SUSE Linux Enterprise Micro 5.3 | kernel-default | Affected |
| SUSE Linux Enterprise Micro 5.3 | kernel-rt | Affected |
| SUSE Linux Enterprise Micro 5.3 | kernel-source | Affected |
| SUSE Linux Enterprise Micro 5.3 | kernel-source-rt | Affected |
| SUSE Linux Enterprise Micro 5.4 | kernel-default | Affected |
| SUSE Linux Enterprise Micro 5.4 | kernel-rt | Affected |
| SUSE Linux Enterprise Micro 5.4 | kernel-source | Affected |
| SUSE Linux Enterprise Micro 5.4 | kernel-source-rt | Affected |
| SUSE Linux Enterprise Micro 5.5 | kernel-default | Affected |
| SUSE Linux Enterprise Micro 5.5 | kernel-source | Affected |
| SUSE Linux Enterprise Micro 5.5 | kernel-source-rt | Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | kernel-default | Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | kernel-source | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | kernel-default | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | kernel-source | Affected |
| SUSE Linux Enterprise Module for Legacy 15 SP7 | kernel-default | Affected |
| SUSE Linux Enterprise Module for Legacy 15 SP7 | kernel-source | Affected |
| SUSE Linux Enterprise Module for Public Cloud 15 SP7 | kernel-source-azure | Affected |
| SUSE Linux Enterprise Real Time 15 SP7 | kernel-source-rt | Affected |
| SUSE Linux Enterprise Server 15 SP7 | kernel-default | Affected |
| SUSE Linux Enterprise Server 15 SP7 | kernel-source | Affected |
| SUSE Linux Enterprise Server 15 SP7 | kernel-source-azure | Affected |
| SUSE Linux Enterprise Server 16.0 | kernel-default | Affected |
| SUSE Linux Enterprise Server 16.0 | kernel-source | Affected |
| SUSE Linux Enterprise Server 16.0 | kernel-source-azure | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | kernel-default | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | kernel-source | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | kernel-source-azure | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-default | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-source | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-source-azure | Affected |
| SUSE Linux Enterprise Workstation Extension 15 SP7 | kernel-default | Affected |
| SUSE Linux Enterprise Workstation Extension 15 SP7 | kernel-source | Affected |
| SUSE Linux Micro 6.0 | kernel-default | Affected |
| SUSE Linux Micro 6.0 | kernel-source | Affected |
| SUSE Linux Micro 6.0 | kernel-source-rt | Affected |
| SUSE Linux Micro 6.1 | kernel-default | Affected |
| SUSE Linux Micro 6.1 | kernel-source | Affected |
| SUSE Linux Micro 6.1 | kernel-source-rt | Affected |
| SUSE Linux Micro 6.2 | kernel-default | Affected |
| SUSE Linux Micro 6.2 | kernel-source | Affected |
| SUSE Real Time Module 15 SP7 | kernel-source-rt | Affected |
| openSUSE Leap 15.6 | kernel-default | Affected |
| openSUSE Leap 15.6 | kernel-source | Affected |
| Products under Long Term Service Pack support and receiving important and critical security fixes. | ||
| SUSE Linux Enterprise High Performance Computing 15 SP4 | kernel-source | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | kernel-default | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | kernel-source | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | kernel-source | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | kernel-default | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | kernel-source | Affected |
| SUSE Linux Enterprise Live Patching 12 SP5 | kernel-default | Not affected |
| SUSE Linux Enterprise Live Patching 12 SP5 | kernel-source | Not affected |
| SUSE Linux Enterprise Live Patching 15 SP4 | kernel-default | Affected |
| SUSE Linux Enterprise Live Patching 15 SP4 | kernel-source | Affected |
| SUSE Linux Enterprise Live Patching 15 SP5 | kernel-default | Affected |
| SUSE Linux Enterprise Live Patching 15 SP5 | kernel-source | Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP4 | kernel-source | Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP5 | kernel-source | Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP6 | kernel-default | Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP6 | kernel-source | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP4 | kernel-source | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP5 | kernel-source | Affected |
| SUSE Linux Enterprise Server 11 SP4 LTSS EXTREME CORE | kernel-default | Not affected |
| SUSE Linux Enterprise Server 11 SP4 LTSS EXTREME CORE | kernel-source | Not affected |
| SUSE Linux Enterprise Server 12 SP5 | kernel-source | Not affected |
| SUSE Linux Enterprise Server 12 SP5-LTSS | kernel-default | Not affected |
| SUSE Linux Enterprise Server 12 SP5-LTSS | kernel-source | Not affected |
| SUSE Linux Enterprise Server 12 SP5-LTSS Extended Security | kernel-default | Not affected |
| SUSE Linux Enterprise Server 12 SP5-LTSS Extended Security | kernel-source | Not affected |
| SUSE Linux Enterprise Server 15 SP4 | kernel-source | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | kernel-default | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | kernel-source | Affected |
| SUSE Linux Enterprise Server 15 SP5 | kernel-source | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | kernel-default | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | kernel-source | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | kernel-default | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | kernel-source | Affected |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | kernel-source | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | kernel-default | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | kernel-source | Affected |
| SUSE Manager Proxy 4.3 | kernel-source | Affected |
| SUSE Manager Proxy LTS 4.3 | kernel-source | Affected |
| SUSE Manager Retail Branch Server 4.3 | kernel-source | Affected |
| SUSE Manager Retail Branch Server LTS 4.3 | kernel-source | Affected |
| SUSE Manager Server 4.3 | kernel-source | Affected |
| SUSE Manager Server LTS 4.3 | kernel-source | Affected |
| Products past their end of life and not receiving proactive updates anymore. | ||
| SUSE CaaS Platform 4.0 | kernel-source | Not affected |
| SUSE Enterprise Storage 6 | kernel-source | Not affected |
| SUSE Enterprise Storage 7 | kernel-source | Not affected |
| SUSE Enterprise Storage 7.1 | kernel-source | Not affected |
| SUSE Linux Enterprise Desktop 11 SP4 | kernel-source | Not affected |
| SUSE Linux Enterprise Desktop 12 SP2 | kernel-source | Not affected |
| SUSE Linux Enterprise Desktop 12 SP4 | kernel-source | Not affected |
| SUSE Linux Enterprise Desktop 15 SP1 | kernel-source | Not affected |
| SUSE Linux Enterprise Desktop 15 SP2 | kernel-source | Not affected |
| SUSE Linux Enterprise Desktop 15 SP3 | kernel-source | Not affected |
| SUSE Linux Enterprise Desktop 15 SP4 | kernel-source | Affected |
| SUSE Linux Enterprise Desktop 15 SP5 | kernel-source | Affected |
| SUSE Linux Enterprise Desktop 15 SP6 | kernel-default | Affected |
| SUSE Linux Enterprise Desktop 15 SP6 | kernel-source | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1 | kernel-source | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | kernel-source | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | kernel-source | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | kernel-source | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | kernel-source | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-source | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | kernel-source | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | kernel-source | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | kernel-source | Not affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-source | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | kernel-source | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | kernel-default | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | kernel-source | Affected |
| SUSE Linux Enterprise Micro 5.0 | kernel-default | Not affected |
| SUSE Linux Enterprise Micro 5.1 | kernel-default | Not affected |
| SUSE Linux Enterprise Micro 5.1 | kernel-rt | Not affected |
| SUSE Linux Enterprise Micro 5.1 | kernel-source-rt | Not affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP1 | kernel-source | Not affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP2 | kernel-source | Not affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP3 | kernel-source | Not affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP1 | kernel-source | Not affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP2 | kernel-source | Not affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP3 | kernel-source | Not affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP6 | kernel-source | Affected |
| SUSE Linux Enterprise Point of Sale 12 SP2-CLIENT | kernel-source | Not affected |
| SUSE Linux Enterprise Real Time 15 SP2 | kernel-source | Not affected |
| SUSE Linux Enterprise Real Time 15 SP3 | kernel-source | Not affected |
| SUSE Linux Enterprise Real Time 15 SP3 | kernel-source-rt | Not affected |
| SUSE Linux Enterprise Real Time 15 SP4 | kernel-source | Affected |
| SUSE Linux Enterprise Real Time 15 SP4 | kernel-source-rt | Affected |
| SUSE Linux Enterprise Real Time 15 SP5 | kernel-source-rt | Affected |
| SUSE Linux Enterprise Server 11 SP4 | kernel-source | Not affected |
| SUSE Linux Enterprise Server 11 SP4-LTSS | kernel-source | Not affected |
| SUSE Linux Enterprise Server 12 SP2 | kernel-source | Not affected |
| SUSE Linux Enterprise Server 12 SP2-BCL | kernel-source | Not affected |
| SUSE Linux Enterprise Server 12 SP2-ESPOS | kernel-source | Not affected |
| SUSE Linux Enterprise Server 12 SP2-LTSS | kernel-default | Not affected |
| SUSE Linux Enterprise Server 12 SP2-LTSS | kernel-source | Not affected |
| SUSE Linux Enterprise Server 12 SP4 | kernel-source | Not affected |
| SUSE Linux Enterprise Server 12 SP4-ESPOS | kernel-source | Not affected |
| SUSE Linux Enterprise Server 12 SP4-LTSS | kernel-default | Not affected |
| SUSE Linux Enterprise Server 12 SP4-LTSS | kernel-source | Not affected |
| SUSE Linux Enterprise Server 15 SP1 | kernel-source | Not affected |
| SUSE Linux Enterprise Server 15 SP1-BCL | kernel-source | Not affected |
| SUSE Linux Enterprise Server 15 SP1-LTSS | kernel-default | Not affected |
| SUSE Linux Enterprise Server 15 SP1-LTSS | kernel-source | Not affected |
| SUSE Linux Enterprise Server 15 SP2 | kernel-source | Not affected |
| SUSE Linux Enterprise Server 15 SP2-BCL | kernel-source | Not affected |
| SUSE Linux Enterprise Server 15 SP2-LTSS | kernel-default | Not affected |
| SUSE Linux Enterprise Server 15 SP2-LTSS | kernel-source | Not affected |
| SUSE Linux Enterprise Server 15 SP3 | kernel-source | Not affected |
| SUSE Linux Enterprise Server 15 SP3-BCL | kernel-source | Not affected |
| SUSE Linux Enterprise Server 15 SP3-LTSS | kernel-default | Not affected |
| SUSE Linux Enterprise Server 15 SP3-LTSS | kernel-source | Not affected |
| SUSE Linux Enterprise Server 15 SP6 | kernel-default | Affected |
| SUSE Linux Enterprise Server 15 SP6 | kernel-source | Affected |
| SUSE Linux Enterprise Server for Raspberry Pi 12 SP2 | kernel-source | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 12 SP2 | kernel-source | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | kernel-source | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | kernel-source | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | kernel-source | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | kernel-source | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | kernel-default | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | kernel-source | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | kernel-default | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | kernel-source | Affected |
| SUSE Manager Proxy 4.0 | kernel-source | Not affected |
| SUSE Manager Proxy 4.1 | kernel-source | Not affected |
| SUSE Manager Proxy 4.2 | kernel-source | Not affected |
| SUSE Manager Retail Branch Server 4.0 | kernel-source | Not affected |
| SUSE Manager Retail Branch Server 4.1 | kernel-source | Not affected |
| SUSE Manager Retail Branch Server 4.2 | kernel-source | Not affected |
| SUSE Manager Server 4.0 | kernel-source | Not affected |
| SUSE Manager Server 4.1 | kernel-source | Not affected |
| SUSE Manager Server 4.2 | kernel-source | Not affected |
| SUSE OpenStack Cloud 7 | kernel-source | Not affected |
| SUSE OpenStack Cloud 9 | kernel-source | Not affected |
| SUSE OpenStack Cloud Crowbar 9 | kernel-source | Not affected |
| SUSE Real Time Module 15 SP3 | kernel-source-rt | Not affected |
| SUSE Real Time Module 15 SP4 | kernel-source-rt | Affected |
| SUSE Real Time Module 15 SP5 | kernel-source-rt | Affected |
| openSUSE Leap 15.3 | kernel-source | Not affected |
| openSUSE Leap 15.3 | kernel-source-rt | Not affected |
| openSUSE Leap 15.4 | kernel-source | Affected |
| openSUSE Leap 15.4 | kernel-source-rt | Affected |
| openSUSE Leap 15.5 | kernel-source | Affected |
| openSUSE Leap 15.5 | kernel-source-rt | Affected |
SUSE Timeline for this CVE
CVE page created: Tue Jan 13 22:39:30 2026CVE page last modified: Fri Jan 23 13:24:38 2026