In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix potential UAF of struct nilfs_sc_info in nilfs_segctor_thread()
The finalization of nilfs_segctor_thread() can race with nilfs_segctor_kill_thread() which terminates that thread, potentially causing a use-after-free BUG as KASAN detected.
At the end of nilfs_segctor_thread(), it assigns NULL to "sc_task" member of "struct nilfs_sc_info" to indicate the thread has finished, and then notifies nilfs_segctor_kill_thread() of this using waitqueue "sc_wait_task" on the struct nilfs_sc_info.
However, here, immediately after the NULL assignment to "sc_task", it is possible that nilfs_segctor_kill_thread() will detect it and return to continue the deallocation, freeing the nilfs_sc_info structure before the thread does the notification.
This fixes the issue by protecting the NULL assignment to "sc_task" and its notification, with spinlock "sc_state_lock" of the struct nilfs_sc_info. Since nilfs_segctor_kill_thread() does a final check to see if "sc_task" is NULL with "sc_state_lock" locked, this can eliminate the race.
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade kernel-tools-develUpgrade bpftool-debuginfoUpgrade perfUpgrade kernel-livepatch-5.10.178-162.673Upgrade kernel-debuginfoUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-tools-debuginfoUpgrade bpftoolUpgrade kernel-develUpgrade kernel-debuginfo-common-x86_64Upgrade python-perfUpgrade kernel-headersUpgrade kernel-livepatch-4.14.313-235.533Upgrade kernel-toolsUpgrade kernelUpgrade python-perf-debuginfoUpgrade perf-debuginfo | May 20, 2026 | May 20, 2026 |
| Debian | — | Upgrade linux | Oct 6, 2025 | Oct 6, 2025 |
| Ubuntu | — | Upgrade linux-riscv-5.15Upgrade linux-aws-5.4Upgrade linux-aws-fipsUpgrade linux-nvidia-tegra-igxUpgrade linux-oracle-5.4Upgrade linux-intel-iot-realtimeUpgrade linux-gkeopUpgrade linux-fipsUpgrade linux-gcp-5.15Upgrade linux-ibmUpgrade linux-gcp-5.4Upgrade linux-realtimeUpgrade linux-azureUpgrade linux-azure-5.15Upgrade linux-lowlatencyUpgrade linux-oracleUpgrade linux-nvidiaUpgrade linux-raspiUpgrade linux-oracle-5.15Upgrade linux-gcpUpgrade linux-ibm-5.15Upgrade linux-gkeUpgrade linux-xilinx-zynqmpUpgrade linux-intel-iotgUpgrade linux-kvmUpgrade linux-azure-fipsUpgrade linux-intel-iotg-5.15Upgrade linux-hwe-5.4Upgrade linux-raspi-5.4Upgrade linux-awsUpgrade linux-ibm-5.4Upgrade linux-azure-5.4Upgrade linux-iotUpgrade linux-aws-5.15Upgrade linux-lowlatency-hwe-5.15Upgrade linuxUpgrade linux-bluefieldUpgrade linux-nvidia-tegra-5.15Upgrade linux-nvidia-tegraUpgrade linux-gcp-fipsUpgrade linux-hwe-5.15 | Oct 10, 2025 | Oct 4, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Oct 15, 2025 | Oct 4, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub