CVE-2026-31703
linux linux kernel
Patch priority
RegularFix with the next regular update.
- CVSS
- 7.8
- Severity
- 7.8
- EPSS
- 0.1 %
- Percentile
- 2
- Actively exploited
- not known
The traffic light combines CVSS (severity), EPSS (exploitation probability, FIRST) and CISA's KEV catalog. It does not replace your own assessment. More in the glossary
What do I need to do?
in plain wordsWho is affected?
Everyone who uses Linux-Kernel.
How dangerous is it?
- An attacker already needs access to the device (or gets you to open a file).
- The attacker must already be logged in – this lowers the risk.
What to do?
- Include it in your next regular update.
- Install your distribution’s kernel update and reboot – the new kernel only runs after a restart.
Generated automatically from the CVSS vector, KEV and EPSS – does not replace the vendor’s information. Terms explained
Description
NVDIn the Linux kernel, the following vulnerability has been resolved: writeback: Fix use after free in inode_switch_wbs_work_fn() inode_switch_wbs_work_fn() has a loop like: wb_get(new_wb); while (1) { list = llist_del_all(&new_wb->switch_wbs_ctxs); /* Nothing to do? */ if (!list) break; ... process the items ... } Now adding of items to the list looks like: wb_queue_isw() if (llist_add(&isw->list, &wb->switch_wbs_ctxs)) queue_work(isw_wq, &wb->switch_work); Because inode_switch_wbs_work_fn() loops when processing isw items, it can happen that wb->switch_work is pending while wb->switch_wbs_ctxs is empty. This is a problem because in that case wb can get freed (no isw items -> no wb reference) while the work is still pending causing use-after-free issues. We cannot just fix this by cancelling work when freeing wb because that could still trigger problematic 0 -> 1 transitions on wb refcount due to wb_get() in inode_switch_wbs_work_fn(). It could be all handled with more careful code but that seems unnecessarily complex so let's avoid that until it is proven that the looping actually brings practical benefit. Just remove the loop from inode_switch_wbs_work_fn() instead. That way when wb_queue_isw() queues work, we are guaranteed we have added the first item to wb->switch_wbs_ctxs and nobody is going to remove it (and drop the wb reference it holds) until the queued work runs.
- Vendor / product
- linux linux kernel
- Published
- 01.05.2026
- Modified
- 11.11.2026
- CWE
- CWE-416
- Status
- Modified
CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Vendor updates
18- Ubuntu: USN-8603-1 – Linux kernel (Azure) vulnerabilities 24.07.2026 · Critical · Patch day
- Ubuntu: USN-8569-1 – Linux kernel (HWE) vulnerabilities 20.07.2026 · Critical · Patch day
- Ubuntu: USN-8507-1 – Linux kernel (NVIDIA) vulnerabilities 06.07.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:22458-1 – Security update for the Linux Kernel 03.07.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:22394-1 – Security update for the Linux Kernel 03.07.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:22433-1 – Security update for the Linux Kernel 03.07.2026 · Critical · Patch day
- Ubuntu: USN-8488-2 – Linux kernel (Raspberry Pi) vulnerabilities 02.07.2026 · Critical · Patch day
- Ubuntu: USN-8488-1 – Linux kernel vulnerabilities 01.07.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:2591-1 – Security update for the Linux Kernel 23.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:2482-1 – Security update for the Linux Kernel 22.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:22137-1 – Security update for the Linux Kernel 17.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:22140-1 – Security update for the Linux Kernel 17.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:22099-1 – Security update for the Linux Kernel 16.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:22100-1 – Security update for the Linux Kernel 16.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:22108-1 – Security update for the Linux Kernel 16.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:22112-1 – Security update for the Linux Kernel 16.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:22117-1 – Security update for the Linux Kernel 16.06.2026 · Critical · Patch day
- SUSE: SUSE-SU-2026:22127-1 – Security update for the Linux Kernel 16.06.2026 · Critical · Patch day
Sources: NVD (NIST), CISA KEV, EPSS (FIRST.org), vendors and authorities. No warranty.