xfs: initialise error in xfs_defer_finish_one()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ba949a14446b7346e92e676ee3fe2bb79d9ce450, Kernel 30748a24b9f04f9a83599ba907cc8fbff0729f3c, Kernel 6176d21d7bd609632c5b7e87a3adb9be29ec1e72 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: xfs: initialise error in xfs_defer_finish_one() xfs_defer_finish_one() declares error without an initialiser and only assigns it inside the loop over dfp->dfp_work. When that list is empty the loop body never runs, control falls through to the "Done with the dfp, free it" path, and the function returns an indeterminate value. An item-less pending item reaches this through xfs_defer_add_barrier(), which xfs_reap_ag_blocks() uses on any CONFIG_XFS_ONLINE_REPAIR kernel. xfs_defer_finish_noroll() treats any non-EAGAIN return as fatal, so a non-zero stack value turns a successful barrier into a SHUTDOWN_CORRUPT_INCORE in the middle of a repair. Zero is the correct result: reaching the free path means the item loop drained without a non-zero error.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=3f3cec031099c37513727efc978a12b6346e326d <ba949a14446b7346e92e676ee3fe2bb79d9ce450, >=3f3cec031099c37513727efc978a12b6346e326d <30748a24b9f04f9a83599ba907cc8fbff0729f3c, >=3f3cec031099c37513727efc978a12b6346e326d <6176d21d7bd609632c5b7e87a3adb9be29ec1e72, >=3f3cec031099c37513727efc978a12b6346e326d <6b507c239884f7d4bf8339f6e9eb8bfcb540afde, =6.8 | ba949a14446b7346e92e676ee3fe2bb79d9ce450, 30748a24b9f04f9a83599ba907cc8fbff0729f3c, 6176d21d7bd609632c5b7e87a3adb9be29ec1e72, 6b507c239884f7d4bf8339f6e9eb8bfcb540afde |
| linux-kernel: Kernel | >=6.19.0 <7.2.7, >=6.8.0 <6.12.111, >=6.13.0 <6.18.53 | 7.2.7, 6.12.111, 6.18.53 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket