In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to avoid use-after-free issue in f2fsfilemapfault syzbot reports a f2fs bug as below: BUG: KASAN: slab-use-after-free in f2fsfilemapfault+0xd1/0x2c0 fs/f2fs/file.c:49 Read of size 8 at addr ffff88807bb22680 by task syz-executor184/5058 CPU: 0 PID: 5058 Comm: syz-executor184 Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: <TASK> _dumpstack lib/dumpstack.c:88 [inline] dumpstacklvl+0x1e7/0x2d0 lib/dumpstack.c:106 printaddressdescription mm/kasan/report.c:377 [inline] printreport+0x163/0x540 mm/kasan/report.c:488 kasanreport+0x142/0x170 mm/kasan/report.c:601 f2fsfilemapfault+0xd1/0x2c0 fs/f2fs/file.c:49 _dofault+0x131/0x450 mm/memory.c:4376 dosharedfault mm/memory.c:4798 [inline] dofault mm/memory.c:4872 [inline] doptemissing mm/memory.c:3745 [inline] handleptefault mm/memory.c:5144 [inline] _handlemmfault+0x23b7/0x72b0 mm/memory.c:5285 handlemmfault+0x27e/0x770 mm/memory.c:5450 douseraddrfault arch/x86/mm/fault.c:1364 [inline] handlepagefault arch/x86/mm/fault.c:1507 [inline] excpagefault+0x456/0x870 arch/x86/mm/fault.c:1563 asmexcpagefault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 The root cause is: in f2fsfilemapfault(), vmf->vma may be not alive after filemapfault(), so it may cause use-after-free issue when accessing vmf->vma->vmflags in tracef2fsfilemapfault(). So it needs to keep vmflags in separated temporary variable for tracepoint use.
{ "binaries": [ { "binary_version": "6.8.0-35.35", "binary_name": "linux-buildinfo-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-buildinfo-6.8.0-35-generic-64k" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-cloud-tools-6.8.0-35" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-cloud-tools-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-cloud-tools-common" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-doc" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-headers-6.8.0-35" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-headers-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-headers-6.8.0-35-generic-64k" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-image-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-image-6.8.0-35-generic-dbgsym" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-image-unsigned-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-image-unsigned-6.8.0-35-generic-64k" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-image-unsigned-6.8.0-35-generic-64k-dbgsym" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-image-unsigned-6.8.0-35-generic-dbgsym" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-lib-rust-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-libc-dev" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-modules-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-modules-6.8.0-35-generic-64k" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-modules-extra-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-modules-ipu6-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-modules-iwlwifi-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-modules-usbio-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-source-6.8.0" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-tools-6.8.0-35" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-tools-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-tools-6.8.0-35-generic-64k" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-tools-common" }, { "binary_version": "6.8.0-35.35", "binary_name": "linux-tools-host" } ], "availability": "No subscription required" }
{ "binaries": [ { "binary_version": "6.8.0-1009.9", "binary_name": "linux-aws-cloud-tools-6.8.0-1009" }, { "binary_version": "6.8.0-1009.9", "binary_name": "linux-aws-headers-6.8.0-1009" }, { "binary_version": "6.8.0-1009.9", "binary_name": "linux-aws-tools-6.8.0-1009" }, { "binary_version": "6.8.0-1009.9", "binary_name": "linux-buildinfo-6.8.0-1009-aws" }, { "binary_version": "6.8.0-1009.9", "binary_name": "linux-cloud-tools-6.8.0-1009-aws" }, { "binary_version": "6.8.0-1009.9", "binary_name": "linux-headers-6.8.0-1009-aws" }, { "binary_version": "6.8.0-1009.9", "binary_name": "linux-image-unsigned-6.8.0-1009-aws" }, { "binary_version": "6.8.0-1009.9", "binary_name": "linux-image-unsigned-6.8.0-1009-aws-dbgsym" }, { "binary_version": "6.8.0-1009.9", "binary_name": "linux-modules-6.8.0-1009-aws" }, { "binary_version": "6.8.0-1009.9", "binary_name": "linux-modules-extra-6.8.0-1009-aws" }, { "binary_version": "6.8.0-1009.9", "binary_name": "linux-tools-6.8.0-1009-aws" } ], "availability": "No subscription required" }
{ "binaries": [ { "binary_version": "6.8.0-1008.8", "binary_name": "linux-azure-cloud-tools-6.8.0-1008" }, { "binary_version": "6.8.0-1008.8", "binary_name": "linux-azure-headers-6.8.0-1008" }, { "binary_version": "6.8.0-1008.8", "binary_name": "linux-azure-tools-6.8.0-1008" }, { "binary_version": "6.8.0-1008.8", "binary_name": "linux-buildinfo-6.8.0-1008-azure" }, { "binary_version": "6.8.0-1008.8", "binary_name": "linux-cloud-tools-6.8.0-1008-azure" }, { "binary_version": "6.8.0-1008.8", "binary_name": "linux-headers-6.8.0-1008-azure" }, { "binary_version": "6.8.0-1008.8", "binary_name": "linux-image-unsigned-6.8.0-1008-azure" }, { "binary_version": "6.8.0-1008.8", "binary_name": "linux-image-unsigned-6.8.0-1008-azure-dbgsym" }, { "binary_version": "6.8.0-1008.8", "binary_name": "linux-modules-6.8.0-1008-azure" }, { "binary_version": "6.8.0-1008.8", "binary_name": "linux-modules-extra-6.8.0-1008-azure" }, { "binary_version": "6.8.0-1008.8", "binary_name": "linux-modules-iwlwifi-6.8.0-1008-azure" }, { "binary_version": "6.8.0-1008.8", "binary_name": "linux-tools-6.8.0-1008-azure" } ], "availability": "No subscription required" }
{ "binaries": [ { "binary_version": "6.8.0-1008.9", "binary_name": "linux-buildinfo-6.8.0-1008-gcp" }, { "binary_version": "6.8.0-1008.9", "binary_name": "linux-gcp-headers-6.8.0-1008" }, { "binary_version": "6.8.0-1008.9", "binary_name": "linux-gcp-tools-6.8.0-1008" }, { "binary_version": "6.8.0-1008.9", "binary_name": "linux-headers-6.8.0-1008-gcp" }, { "binary_version": "6.8.0-1008.9", "binary_name": "linux-image-unsigned-6.8.0-1008-gcp" }, { "binary_version": "6.8.0-1008.9", "binary_name": "linux-image-unsigned-6.8.0-1008-gcp-dbgsym" }, { "binary_version": "6.8.0-1008.9", "binary_name": "linux-modules-6.8.0-1008-gcp" }, { "binary_version": "6.8.0-1008.9", "binary_name": "linux-modules-extra-6.8.0-1008-gcp" }, { "binary_version": "6.8.0-1008.9", "binary_name": "linux-modules-iwlwifi-6.8.0-1008-gcp" }, { "binary_version": "6.8.0-1008.9", "binary_name": "linux-tools-6.8.0-1008-gcp" } ], "availability": "No subscription required" }
{ "binaries": [ { "binary_version": "6.8.0-1004.7", "binary_name": "linux-buildinfo-6.8.0-1004-gke" }, { "binary_version": "6.8.0-1004.7", "binary_name": "linux-gke-headers-6.8.0-1004" }, { "binary_version": "6.8.0-1004.7", "binary_name": "linux-gke-tools-6.8.0-1004" }, { "binary_version": "6.8.0-1004.7", "binary_name": "linux-headers-6.8.0-1004-gke" }, { "binary_version": "6.8.0-1004.7", "binary_name": "linux-image-unsigned-6.8.0-1004-gke" }, { "binary_version": "6.8.0-1004.7", "binary_name": "linux-image-unsigned-6.8.0-1004-gke-dbgsym" }, { "binary_version": "6.8.0-1004.7", "binary_name": "linux-modules-6.8.0-1004-gke" }, { "binary_version": "6.8.0-1004.7", "binary_name": "linux-modules-extra-6.8.0-1004-gke" }, { "binary_version": "6.8.0-1004.7", "binary_name": "linux-modules-iwlwifi-6.8.0-1004-gke" }, { "binary_version": "6.8.0-1004.7", "binary_name": "linux-tools-6.8.0-1004-gke" } ], "availability": "No subscription required" }
{ "binaries": [ { "binary_version": "6.8.0-1006.6", "binary_name": "linux-buildinfo-6.8.0-1006-ibm" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-headers-6.8.0-1006-ibm" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-ibm-cloud-tools-common" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-ibm-headers-6.8.0-1006" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-ibm-source-6.8.0" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-ibm-tools-6.8.0-1006" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-image-unsigned-6.8.0-1006-ibm" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-image-unsigned-6.8.0-1006-ibm-dbgsym" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-modules-6.8.0-1006-ibm" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-modules-extra-6.8.0-1006-ibm" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-modules-iwlwifi-6.8.0-1006-ibm" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-tools-6.8.0-1006-ibm" } ], "availability": "No subscription required" }
{ "binaries": [ { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-buildinfo-6.8.0-35-lowlatency" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-buildinfo-6.8.0-35-lowlatency-64k" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-cloud-tools-6.8.0-35-lowlatency" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-headers-6.8.0-35-lowlatency" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-headers-6.8.0-35-lowlatency-64k" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-image-unsigned-6.8.0-35-lowlatency" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-image-unsigned-6.8.0-35-lowlatency-64k" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-image-unsigned-6.8.0-35-lowlatency-64k-dbgsym" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-image-unsigned-6.8.0-35-lowlatency-dbgsym" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-lowlatency-cloud-tools-6.8.0-35" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-lowlatency-cloud-tools-common" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-lowlatency-headers-6.8.0-35" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-lowlatency-lib-rust-6.8.0-35-lowlatency" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-lowlatency-tools-6.8.0-35" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-lowlatency-tools-common" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-lowlatency-tools-host" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-modules-6.8.0-35-lowlatency" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-modules-6.8.0-35-lowlatency-64k" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-modules-iwlwifi-6.8.0-35-lowlatency" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-tools-6.8.0-35-lowlatency" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-tools-6.8.0-35-lowlatency-64k" } ], "availability": "No subscription required" }
{ "binaries": [ { "binary_version": "6.8.0-1006.6", "binary_name": "linux-buildinfo-6.8.0-1006-oem" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-headers-6.8.0-1006-oem" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-image-unsigned-6.8.0-1006-oem" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-image-unsigned-6.8.0-1006-oem-dbgsym" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-modules-6.8.0-1006-oem" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-modules-ipu6-6.8.0-1006-oem" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-modules-iwlwifi-6.8.0-1006-oem" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-modules-usbio-6.8.0-1006-oem" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-oem-6.8-headers-6.8.0-1006" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-oem-6.8-tools-6.8.0-1006" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-tools-6.8.0-1006-oem" } ], "availability": "No subscription required" }
{ "binaries": [ { "binary_version": "6.8.0-1006.6", "binary_name": "linux-buildinfo-6.8.0-1006-oracle" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-buildinfo-6.8.0-1006-oracle-64k" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-headers-6.8.0-1006-oracle" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-headers-6.8.0-1006-oracle-64k" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-image-unsigned-6.8.0-1006-oracle" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-image-unsigned-6.8.0-1006-oracle-64k" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-image-unsigned-6.8.0-1006-oracle-64k-dbgsym" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-image-unsigned-6.8.0-1006-oracle-dbgsym" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-modules-6.8.0-1006-oracle" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-modules-6.8.0-1006-oracle-64k" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-modules-extra-6.8.0-1006-oracle" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-modules-extra-6.8.0-1006-oracle-64k" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-modules-iwlwifi-6.8.0-1006-oracle" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-oracle-headers-6.8.0-1006" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-oracle-tools-6.8.0-1006" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-tools-6.8.0-1006-oracle" }, { "binary_version": "6.8.0-1006.6", "binary_name": "linux-tools-6.8.0-1006-oracle-64k" } ], "availability": "No subscription required" }
{ "binaries": [ { "binary_version": "6.8.0-1005.5", "binary_name": "linux-buildinfo-6.8.0-1005-raspi" }, { "binary_version": "6.8.0-1005.5", "binary_name": "linux-headers-6.8.0-1005-raspi" }, { "binary_version": "6.8.0-1005.5", "binary_name": "linux-image-6.8.0-1005-raspi" }, { "binary_version": "6.8.0-1005.5", "binary_name": "linux-image-6.8.0-1005-raspi-dbgsym" }, { "binary_version": "6.8.0-1005.5", "binary_name": "linux-modules-6.8.0-1005-raspi" }, { "binary_version": "6.8.0-1005.5", "binary_name": "linux-raspi-headers-6.8.0-1005" }, { "binary_version": "6.8.0-1005.5", "binary_name": "linux-raspi-tools-6.8.0-1005" }, { "binary_version": "6.8.0-1005.5", "binary_name": "linux-tools-6.8.0-1005-raspi" } ], "availability": "No subscription required" }
{ "binaries": [ { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-buildinfo-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-headers-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-image-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-image-6.8.0-35-generic-dbgsym" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-modules-6.8.0-35-generic" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-riscv-headers-6.8.0-35" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-riscv-tools-6.8.0-35" }, { "binary_version": "6.8.0-35.35.1", "binary_name": "linux-tools-6.8.0-35-generic" } ], "availability": "No subscription required" }
{ "binaries": [ { "binary_version": "6.8.0-2004.4", "binary_name": "linux-buildinfo-6.8.0-2004-raspi-realtime" }, { "binary_version": "6.8.0-2004.4", "binary_name": "linux-headers-6.8.0-2004-raspi-realtime" }, { "binary_version": "6.8.0-2004.4", "binary_name": "linux-image-6.8.0-2004-raspi-realtime" }, { "binary_version": "6.8.0-2004.4", "binary_name": "linux-image-6.8.0-2004-raspi-realtime-dbgsym" }, { "binary_version": "6.8.0-2004.4", "binary_name": "linux-modules-6.8.0-2004-raspi-realtime" }, { "binary_version": "6.8.0-2004.4", "binary_name": "linux-raspi-realtime-headers-6.8.0-2004" }, { "binary_version": "6.8.0-2004.4", "binary_name": "linux-raspi-realtime-tools-6.8.0-2004" }, { "binary_version": "6.8.0-2004.4", "binary_name": "linux-tools-6.8.0-2004-raspi-realtime" } ], "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro" }
{ "binaries": [ { "binary_version": "6.8.1-1002.2", "binary_name": "linux-buildinfo-6.8.1-1002-realtime" }, { "binary_version": "6.8.1-1002.2", "binary_name": "linux-cloud-tools-6.8.1-1002-realtime" }, { "binary_version": "6.8.1-1002.2", "binary_name": "linux-headers-6.8.1-1002-realtime" }, { "binary_version": "6.8.1-1002.2", "binary_name": "linux-image-unsigned-6.8.1-1002-realtime" }, { "binary_version": "6.8.1-1002.2", "binary_name": "linux-image-unsigned-6.8.1-1002-realtime-dbgsym" }, { "binary_version": "6.8.1-1002.2", "binary_name": "linux-modules-6.8.1-1002-realtime" }, { "binary_version": "6.8.1-1002.2", "binary_name": "linux-modules-extra-6.8.1-1002-realtime" }, { "binary_version": "6.8.1-1002.2", "binary_name": "linux-modules-iwlwifi-6.8.1-1002-realtime" }, { "binary_version": "6.8.1-1002.2", "binary_name": "linux-realtime-cloud-tools-6.8.1-1002" }, { "binary_version": "6.8.1-1002.2", "binary_name": "linux-realtime-headers-6.8.1-1002" }, { "binary_version": "6.8.1-1002.2", "binary_name": "linux-realtime-tools-6.8.1-1002" }, { "binary_version": "6.8.1-1002.2", "binary_name": "linux-tools-6.8.1-1002-realtime" } ], "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro" }