From c8b2bfe56f70c398d2b3d854626d2e4c9c1d5d86 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sun, 29 Nov 2026 14:12:34 +0100 Subject: [PATCH] cve: Claude backports for 19 CVEs on 6.1 Signed-off-by: Igor Pecovnik --- attempts.json | 73 ++++ ...e-update-ttu-flag-inside-unmap-poiso.patch | 172 ++++++++++ cve/CVE-2025-21907/6.1/base | 1 + cve/CVE-2025-21907/6.1/fasttrack.json | 32 ++ cve/CVE-2025-21907/6.1/series.conf | 5 + ...rn-with-uffd-that-has-remap-events-d.patch | 172 ++++++++++ cve/CVE-2025-39775/6.1/base | 1 + cve/CVE-2025-39775/6.1/fasttrack.json | 32 ++ cve/CVE-2025-39775/6.1/series.conf | 5 + ...ix-reading-parity-bytes-split-across.patch | 312 ++++++++++++++++++ cve/CVE-2026-46130/6.1/base | 1 + cve/CVE-2026-46130/6.1/fasttrack.json | 32 ++ cve/CVE-2026-46130/6.1/series.conf | 5 + ...bs-rtw-mlme-add-bounds-checks-before.patch | 154 ++++++++- cve/CVE-2026-53178/6.1/base | 2 +- cve/CVE-2026-53178/6.1/fasttrack.json | 18 +- cve/CVE-2026-53178/6.1/series.conf | 2 +- ...-clear-wcid-mask-under-mutex-after-r.patch | 180 ++++++++++ cve/CVE-2026-90373/6.1/base | 1 + cve/CVE-2026-90373/6.1/fasttrack.json | 32 ++ cve/CVE-2026-90373/6.1/series.conf | 5 + ...dump-quiesce-dump-work-on-unregister.patch | 192 +++++++++++ cve/CVE-2026-98295/6.1/base | 1 + cve/CVE-2026-98295/6.1/fasttrack.json | 32 ++ cve/CVE-2026-98295/6.1/series.conf | 5 + ...rce-4-byte-alignment-of-vcpu-info-re.patch | 120 +++++++ cve/CVE-2026-99342/6.1/base | 1 + cve/CVE-2026-99342/6.1/fasttrack.json | 32 ++ cve/CVE-2026-99342/6.1/series.conf | 5 + ...-net-before-registering-the-cld-pipe.patch | 134 ++++++++ cve/CVE-2026-99360/6.1/base | 1 + cve/CVE-2026-99360/6.1/fasttrack.json | 32 ++ cve/CVE-2026-99360/6.1/series.conf | 5 + ...x-snd-acp63-remove-teardown-ordering.patch | 62 ++++ cve/CVE-2026-99482/6.1/base | 1 + cve/CVE-2026-99482/6.1/fasttrack.json | 32 ++ cve/CVE-2026-99482/6.1/series.conf | 5 + ...void-use-after-free-in-icrdma-remove.patch | 68 ++++ cve/CVE-2026-99522/6.1/base | 1 + cve/CVE-2026-99522/6.1/fasttrack.json | 32 ++ cve/CVE-2026-99522/6.1/series.conf | 5 + ...e-the-queue-state-under-the-queue-lo.patch | 185 +++++++++++ cve/CVE-2026-99571/6.1/base | 1 + cve/CVE-2026-99571/6.1/fasttrack.json | 32 ++ cve/CVE-2026-99571/6.1/series.conf | 5 + ...readahead-lock-inversion-in-collapse.patch | 125 +++++++ cve/CVE-2026-99643/6.1/base | 1 + cve/CVE-2026-99643/6.1/fasttrack.json | 32 ++ cve/CVE-2026-99643/6.1/series.conf | 5 + 49 files changed, 2368 insertions(+), 21 deletions(-) create mode 100644 cve/CVE-2025-21907/6.1/0001-b81679b1633a-mm-memory-failure-update-ttu-flag-inside-unmap-poiso.patch create mode 100644 cve/CVE-2025-21907/6.1/base create mode 100644 cve/CVE-2025-21907/6.1/fasttrack.json create mode 100644 cve/CVE-2025-21907/6.1/series.conf create mode 100644 cve/CVE-2025-39775/6.1/0001-772e5b4a5e83-mm-mremap-fix-warn-with-uffd-that-has-remap-events-d.patch create mode 100644 cve/CVE-2025-39775/6.1/base create mode 100644 cve/CVE-2025-39775/6.1/fasttrack.json create mode 100644 cve/CVE-2025-39775/6.1/series.conf create mode 100644 cve/CVE-2026-46130/6.1/0001-430a05cb926f-dm-verity-fec-fix-reading-parity-bytes-split-across.patch create mode 100644 cve/CVE-2026-46130/6.1/base create mode 100644 cve/CVE-2026-46130/6.1/fasttrack.json create mode 100644 cve/CVE-2026-46130/6.1/series.conf create mode 100644 cve/CVE-2026-90373/6.1/0001-6486e11a6e2f-wifi-mt76-mt7915-clear-wcid-mask-under-mutex-after-r.patch create mode 100644 cve/CVE-2026-90373/6.1/base create mode 100644 cve/CVE-2026-90373/6.1/fasttrack.json create mode 100644 cve/CVE-2026-90373/6.1/series.conf create mode 100644 cve/CVE-2026-98295/6.1/0001-d236517c264e-bluetooth-coredump-quiesce-dump-work-on-unregister.patch create mode 100644 cve/CVE-2026-98295/6.1/base create mode 100644 cve/CVE-2026-98295/6.1/fasttrack.json create mode 100644 cve/CVE-2026-98295/6.1/series.conf create mode 100644 cve/CVE-2026-99342/6.1/0001-eacdb76c5f04-kvm-x86-xen-enforce-4-byte-alignment-of-vcpu-info-re.patch create mode 100644 cve/CVE-2026-99342/6.1/base create mode 100644 cve/CVE-2026-99342/6.1/fasttrack.json create mode 100644 cve/CVE-2026-99342/6.1/series.conf create mode 100644 cve/CVE-2026-99360/6.1/0001-14996e662f3b-nfsd-set-nn-cld-net-before-registering-the-cld-pipe.patch create mode 100644 cve/CVE-2026-99360/6.1/base create mode 100644 cve/CVE-2026-99360/6.1/fasttrack.json create mode 100644 cve/CVE-2026-99360/6.1/series.conf create mode 100644 cve/CVE-2026-99482/6.1/0001-c53791d673ed-asoc-amd-ps-fix-snd-acp63-remove-teardown-ordering.patch create mode 100644 cve/CVE-2026-99482/6.1/base create mode 100644 cve/CVE-2026-99482/6.1/fasttrack.json create mode 100644 cve/CVE-2026-99482/6.1/series.conf create mode 100644 cve/CVE-2026-99522/6.1/0001-8a8088b899e4-rdma-irdma-avoid-use-after-free-in-icrdma-remove.patch create mode 100644 cve/CVE-2026-99522/6.1/base create mode 100644 cve/CVE-2026-99522/6.1/fasttrack.json create mode 100644 cve/CVE-2026-99522/6.1/series.conf create mode 100644 cve/CVE-2026-99571/6.1/0001-2eeeaa9c1ff0-nvme-tcp-validate-the-queue-state-under-the-queue-lo.patch create mode 100644 cve/CVE-2026-99571/6.1/base create mode 100644 cve/CVE-2026-99571/6.1/fasttrack.json create mode 100644 cve/CVE-2026-99571/6.1/series.conf create mode 100644 cve/CVE-2026-99643/6.1/0001-eadce52a9ef6-khugepaged-fix-readahead-lock-inversion-in-collapse.patch create mode 100644 cve/CVE-2026-99643/6.1/base create mode 100644 cve/CVE-2026-99643/6.1/fasttrack.json create mode 100644 cve/CVE-2026-99643/6.1/series.conf diff --git a/attempts.json b/attempts.json index bbd63a7c..e816cf36 100644 --- a/attempts.json +++ b/attempts.json @@ -1193,6 +1193,17 @@ "run": null } }, + "CVE-2026-23088": { + "6.1": { + "cost": null, + "date": "2026-11-29", + "head": "6.1.193", + "outcome": "not-affected-needs-review", + "reason": "6.1 lacks 288709c9f3b0, so no hist variable holds a stacktrace; check_synth_field() rejects the reproducer", + "reviewed": "2026-11-29", + "run": null + } + }, "CVE-2026-23117": { "6.1": { "cost": null, @@ -1409,6 +1420,17 @@ "run": null } }, + "CVE-2026-31648": { + "6.1": { + "cost": null, + "date": "2026-11-29", + "head": "6.1.193", + "outcome": "not-affected-needs-review", + "reason": "6.1 filemap_map_pages() maps one page per loop with do_set_pte(); no nr_pages or filemap_map_folio_range()", + "reviewed": "2026-11-29", + "run": null + } + }, "CVE-2026-31710": { "6.18": { "cost": 0.34346239999999995, @@ -2285,6 +2307,15 @@ } }, "CVE-2026-72042": { + "6.1": { + "cost": null, + "date": "2026-11-29", + "head": "6.1.193", + "outcome": "not-affected-needs-review", + "reason": "6.1 backport f63723ca7d76 of b52da4054ee0 has no extra kref_put in the handle_read_event_rsp() rollback; stale put came with 3be997d5a64a, not in 6.1", + "reviewed": "2026-11-29", + "run": null + }, "6.12": { "cost": 0.43853475, "date": "2026-11-15", @@ -2415,6 +2446,17 @@ "run": null } }, + "CVE-2026-72395": { + "6.1": { + "cost": null, + "date": "2026-11-29", + "head": "6.1.193", + "outcome": "not-affected-needs-review", + "reason": "6.1 backport f0c9ea9c3a20 of 754bd2b4a084 adds only update_lock; no regulator event worker in 6.1 pmbus", + "reviewed": "2026-11-29", + "run": null + } + }, "CVE-2026-72397": { "6.18": { "cost": 0.3343126999999999, @@ -2568,6 +2610,17 @@ "run": null } }, + "CVE-2026-74432": { + "6.1": { + "cost": null, + "date": "2026-11-29", + "head": "6.1.193", + "outcome": "not-affected-needs-review", + "reason": "6.1 backport cb720b068b18 of 962fb1f651c2 has no MSG_PEEK condition; recvmsg always puts the call", + "reviewed": "2026-11-29", + "run": null + } + }, "CVE-2026-74506": { "6.1": { "cost": null, @@ -3264,6 +3317,17 @@ "run": null } }, + "CVE-2026-98044": { + "6.1": { + "cost": null, + "date": "2026-11-29", + "head": "6.1.193", + "outcome": "not-affected-needs-review", + "reason": "needs the 6.4 backtracking rework; 6.1 returns -ENOTSUPP and marks all scalars precise, no -EFAULT", + "reviewed": "2026-11-29", + "run": null + } + }, "CVE-2026-98067": { "6.1": { "cost": null, @@ -4064,6 +4128,15 @@ } }, "CVE-2026-98983": { + "6.1": { + "cost": null, + "date": "2026-11-29", + "head": "6.1.193", + "outcome": "not-affected-needs-review", + "reason": "6.1 has no active namespace references (no nscommon.c, ns_ref_active); put_nsproxy() is a plain count", + "reviewed": "2026-11-29", + "run": null + }, "6.12": { "cost": 0.7276285, "date": "2026-11-15", diff --git a/cve/CVE-2025-21907/6.1/0001-b81679b1633a-mm-memory-failure-update-ttu-flag-inside-unmap-poiso.patch b/cve/CVE-2025-21907/6.1/0001-b81679b1633a-mm-memory-failure-update-ttu-flag-inside-unmap-poiso.patch new file mode 100644 index 00000000..2fc1f463 --- /dev/null +++ b/cve/CVE-2025-21907/6.1/0001-b81679b1633a-mm-memory-failure-update-ttu-flag-inside-unmap-poiso.patch @@ -0,0 +1,172 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +X-Fasttrack-Source: claude +X-Fasttrack-Upstream: b81679b1633aa43c0d973adfa816d78c1ed0d032 +X-Fasttrack-CVE: CVE-2025-21907 +From: Ma Wupeng +Date: Mon, 17 Feb 2025 09:43:27 +0800 +Subject: [PATCH] mm: memory-failure: update ttu flag inside + unmap_poisoned_folio + +commit b81679b1633aa43c0d973adfa816d78c1ed0d032 upstream. + +[ Backport: unmap_poisoned_folio() already has its upstream form here (added with the 1b0449544c64 backport); this commit only converts the callers ] +[ Backport: hwpoison_user_mappings() keeps 6.1 page-based checks and messages; only the ttu policy and unmap code move into unmap_poisoned_folio() ] +[ Backport: do_migrate_range() keeps the folio_lock() from af288a426c3e, which 6.1 already has and folio_mkclean() needs ] + +Patch series "mm: memory_failure: unmap poisoned folio during migrate +properly", v3. + +Fix two bugs during folio migration if the folio is poisoned. + +This patch (of 3): + +Commit 6da6b1d4a7df ("mm/hwpoison: convert TTU_IGNORE_HWPOISON to +TTU_HWPOISON") introduce TTU_HWPOISON to replace TTU_IGNORE_HWPOISON in +order to stop send SIGBUS signal when accessing an error page after a +memory error on a clean folio. However during page migration, anon folio +must be set with TTU_HWPOISON during unmap_*(). For pagecache we need +some policy just like the one in hwpoison_user_mappings to set this flag. +So move this policy from hwpoison_user_mappings to unmap_poisoned_folio to +handle this warning properly. + +Warning will be produced during unamp poison folio with the following log: + + ------------[ cut here ]------------ + WARNING: CPU: 1 PID: 365 at mm/rmap.c:1847 try_to_unmap_one+0x8fc/0xd3c + Modules linked in: + CPU: 1 UID: 0 PID: 365 Comm: bash Tainted: G W 6.13.0-rc1-00018-gacdb4bbda7ab #42 + Tainted: [W]=WARN + Hardware name: QEMU QEMU Virtual Machine, BIOS 0.0.0 02/06/2015 + pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) + pc : try_to_unmap_one+0x8fc/0xd3c + lr : try_to_unmap_one+0x3dc/0xd3c + Call trace: + try_to_unmap_one+0x8fc/0xd3c (P) + try_to_unmap_one+0x3dc/0xd3c (L) + rmap_walk_anon+0xdc/0x1f8 + rmap_walk+0x3c/0x58 + try_to_unmap+0x88/0x90 + unmap_poisoned_folio+0x30/0xa8 + do_migrate_range+0x4a0/0x568 + offline_pages+0x5a4/0x670 + memory_block_action+0x17c/0x374 + memory_subsys_offline+0x3c/0x78 + device_offline+0xa4/0xd0 + state_store+0x8c/0xf0 + dev_attr_store+0x18/0x2c + sysfs_kf_write+0x44/0x54 + kernfs_fop_write_iter+0x118/0x1a8 + vfs_write+0x3a8/0x4bc + ksys_write+0x6c/0xf8 + __arm64_sys_write+0x1c/0x28 + invoke_syscall+0x44/0x100 + el0_svc_common.constprop.0+0x40/0xe0 + do_el0_svc+0x1c/0x28 + el0_svc+0x30/0xd0 + el0t_64_sync_handler+0xc8/0xcc + el0t_64_sync+0x198/0x19c + ---[ end trace 0000000000000000 ]--- + +[mawupeng1@huawei.com: unmap_poisoned_folio(): remove shadowed local `mapping', per Miaohe] + Link: https://lkml.kernel.org/r/20250219060653.3849083-1-mawupeng1@huawei.com +Link: https://lkml.kernel.org/r/20250217014329.3610326-1-mawupeng1@huawei.com +Link: https://lkml.kernel.org/r/20250217014329.3610326-2-mawupeng1@huawei.com +Fixes: 6da6b1d4a7df ("mm/hwpoison: convert TTU_IGNORE_HWPOISON to TTU_HWPOISON") +Signed-off-by: Ma Wupeng +Suggested-by: David Hildenbrand +Acked-by: David Hildenbrand +Acked-by: Miaohe Lin +Cc: Ma Wupeng +Cc: Michal Hocko +Cc: Naoya Horiguchi +Cc: Oscar Salvador +Cc: +Signed-off-by: Andrew Morton +--- + mm/memory-failure.c | 45 +-------------------------------------------- + mm/memory_hotplug.c | 2 +- + 2 files changed, 2 insertions(+), 45 deletions(-) + +diff --git a/mm/memory-failure.c b/mm/memory-failure.c +index a4a7b3b8e182ae..5b29e940700193 100644 +--- a/mm/memory-failure.c ++++ b/mm/memory-failure.c +@@ -1481,8 +1481,6 @@ static bool hwpoison_user_mappings(struct page *p, unsigned long pfn, + int flags, struct page *hpage) + { + struct folio *folio = page_folio(hpage); +- enum ttu_flags ttu = TTU_IGNORE_MLOCK | TTU_SYNC | TTU_HWPOISON; +- struct address_space *mapping; + LIST_HEAD(tokill); + bool unmap_success; + int forcekill; +@@ -1509,29 +1507,6 @@ static bool hwpoison_user_mappings(struct page *p, unsigned long pfn, + return false; + } + +- if (PageSwapCache(p)) { +- pr_err("%#lx: keeping poisoned page in swap cache\n", pfn); +- ttu &= ~TTU_HWPOISON; +- } +- +- /* +- * Propagate the dirty bit from PTEs to struct page first, because we +- * need this to decide if we should kill or just drop the page. +- * XXX: the dirty test could be racy: set_page_dirty() may not always +- * be called inside page lock (it's recommended but not enforced). +- */ +- mapping = page_mapping(hpage); +- if (!(flags & MF_MUST_KILL) && !PageDirty(hpage) && mapping && +- mapping_can_writeback(mapping)) { +- if (page_mkclean(hpage)) { +- SetPageDirty(hpage); +- } else { +- ttu &= ~TTU_HWPOISON; +- pr_info("%#lx: corrupted page was clean: dropped without side effects\n", +- pfn); +- } +- } +- + /* + * First collect all the processes that have the page + * mapped in dirty form. This has to be done before try_to_unmap, +@@ -1539,25 +1514,7 @@ static bool hwpoison_user_mappings(struct page *p, unsigned long pfn, + */ + collect_procs(hpage, &tokill, flags & MF_ACTION_REQUIRED); + +- if (PageHuge(hpage) && !PageAnon(hpage)) { +- /* +- * For hugetlb pages in shared mappings, try_to_unmap +- * could potentially call huge_pmd_unshare. Because of +- * this, take semaphore in write mode here and set +- * TTU_RMAP_LOCKED to indicate we have taken the lock +- * at this higher level. +- */ +- mapping = hugetlb_page_mapping_lock_write(hpage); +- if (mapping) { +- try_to_unmap(folio, ttu|TTU_RMAP_LOCKED); +- i_mmap_unlock_write(mapping); +- } else +- pr_info("%#lx: could not lock mapping for mapped huge page\n", pfn); +- } else { +- try_to_unmap(folio, ttu); +- } +- +- unmap_success = !page_mapped(p); ++ unmap_success = !unmap_poisoned_folio(folio, pfn, flags & MF_MUST_KILL); + if (!unmap_success) + pr_err("%#lx: failed to unmap page (mapcount=%d)\n", + pfn, page_mapcount(p)); +diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c +index 1a6cc0161fb765..9b724dc5d6cd75 100644 +--- a/mm/memory_hotplug.c ++++ b/mm/memory_hotplug.c +@@ -1659,7 +1659,7 @@ do_migrate_range(unsigned long start_pfn, unsigned long end_pfn) + folio_isolate_lru(folio); + if (folio_mapped(folio)) { + folio_lock(folio); +- try_to_unmap(folio, TTU_IGNORE_MLOCK); ++ unmap_poisoned_folio(folio, pfn, false); + folio_unlock(folio); + } + diff --git a/cve/CVE-2025-21907/6.1/base b/cve/CVE-2025-21907/6.1/base new file mode 100644 index 00000000..5c0fc3d6 --- /dev/null +++ b/cve/CVE-2025-21907/6.1/base @@ -0,0 +1 @@ +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2025-21907/6.1/fasttrack.json b/cve/CVE-2025-21907/6.1/fasttrack.json new file mode 100644 index 00000000..5986440c --- /dev/null +++ b/cve/CVE-2025-21907/6.1/fasttrack.json @@ -0,0 +1,32 @@ +{ + "series": "6.1", + "base": { + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" + }, + "incident": "CVE-2025-21907", + "outcome": "patched-needs-review", + "fixed_in": null, + "made": "2026-11-29T10:02:42Z", + "patches": [ + { + "series": "6.1", + "upstream": "b81679b1633aa43c0d973adfa816d78c1ed0d032", + "subject": "mm: memory-failure: update ttu flag inside unmap_poisoned_folio", + "source": "claude", + "cves": [ + "CVE-2025-21907" + ], + "kev": false, + "verdict": "claude-backport", + "reason": "backport made in work package; review before use", + "filename": "0001-b81679b1633a-mm-memory-failure-update-ttu-flag-inside-unmap-poiso.patch", + "files": [], + "prerequisites": [], + "build_log": "", + "backport": "", + "bug_commits": [], + "unaffected": false + } + ] +} diff --git a/cve/CVE-2025-21907/6.1/series.conf b/cve/CVE-2025-21907/6.1/series.conf new file mode 100644 index 00000000..6e1b6f21 --- /dev/null +++ b/cve/CVE-2025-21907/6.1/series.conf @@ -0,0 +1,5 @@ +# Generated by ksec-fasttrack. Do not edit by hand: the next run rewrites it. +# Security fixes not yet in a 6.1 stable release, verified to apply as a series, +# with no fuzz, on top of 1ca1436ccc68 (6.1.193). + +0001-b81679b1633a-mm-memory-failure-update-ttu-flag-inside-unmap-poiso.patch diff --git a/cve/CVE-2025-39775/6.1/0001-772e5b4a5e83-mm-mremap-fix-warn-with-uffd-that-has-remap-events-d.patch b/cve/CVE-2025-39775/6.1/0001-772e5b4a5e83-mm-mremap-fix-warn-with-uffd-that-has-remap-events-d.patch new file mode 100644 index 00000000..3a45f6ef --- /dev/null +++ b/cve/CVE-2025-39775/6.1/0001-772e5b4a5e83-mm-mremap-fix-warn-with-uffd-that-has-remap-events-d.patch @@ -0,0 +1,172 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +X-Fasttrack-Source: claude +X-Fasttrack-Upstream: 772e5b4a5e8360743645b9a466842d16092c4f94 +X-Fasttrack-CVE: CVE-2025-39775 +From: David Hildenbrand +Date: Mon, 18 Aug 2025 19:53:58 +0200 +Subject: [PATCH] mm/mremap: fix WARN with uffd that has remap events disabled + +commit 772e5b4a5e8360743645b9a466842d16092c4f94 upstream. + +[ Backport: 6.1 has no struct pagetable_move_control, so there is no uffd_supports_page_table_move() helper; move_page_tables() computes the same check for vma and new_vma once and skips the NORMAL_PUD/NORMAL_PMD moves, as in the 6.12.y backport ] + +Registering userfaultd on a VMA that spans at least one PMD and then +mremap()'ing that VMA can trigger a WARN when recovering from a failed +page table move due to a page table allocation error. + +The code ends up doing the right thing (recurse, avoiding moving actual +page tables), but triggering that WARN is unpleasant: + +WARNING: CPU: 2 PID: 6133 at mm/mremap.c:357 move_normal_pmd mm/mremap.c:357 [inline] +WARNING: CPU: 2 PID: 6133 at mm/mremap.c:357 move_pgt_entry mm/mremap.c:595 [inline] +WARNING: CPU: 2 PID: 6133 at mm/mremap.c:357 move_page_tables+0x3832/0x44a0 mm/mremap.c:852 +Modules linked in: +CPU: 2 UID: 0 PID: 6133 Comm: syz.0.19 Not tainted 6.17.0-rc1-syzkaller-00004-g53e760d89498 #0 PREEMPT(full) +Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 +RIP: 0010:move_normal_pmd mm/mremap.c:357 [inline] +RIP: 0010:move_pgt_entry mm/mremap.c:595 [inline] +RIP: 0010:move_page_tables+0x3832/0x44a0 mm/mremap.c:852 +Code: ... +RSP: 0018:ffffc900037a76d8 EFLAGS: 00010293 +RAX: 0000000000000000 RBX: 0000000032930007 RCX: ffffffff820c6645 +RDX: ffff88802e56a440 RSI: ffffffff820c7201 RDI: 0000000000000007 +RBP: ffff888037728fc0 R08: 0000000000000007 R09: 0000000000000000 +R10: 0000000032930007 R11: 0000000000000000 R12: 0000000000000000 +R13: ffffc900037a79a8 R14: 0000000000000001 R15: dffffc0000000000 +FS: 000055556316a500(0000) GS:ffff8880d68bc000(0000) knlGS:0000000000000000 +CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 +CR2: 0000001b30863fff CR3: 0000000050171000 CR4: 0000000000352ef0 +Call Trace: + + copy_vma_and_data+0x468/0x790 mm/mremap.c:1215 + move_vma+0x548/0x1780 mm/mremap.c:1282 + mremap_to+0x1b7/0x450 mm/mremap.c:1406 + do_mremap+0xfad/0x1f80 mm/mremap.c:1921 + __do_sys_mremap+0x119/0x170 mm/mremap.c:1977 + do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] + do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 + entry_SYSCALL_64_after_hwframe+0x77/0x7f +RIP: 0033:0x7f00d0b8ebe9 +Code: ... +RSP: 002b:00007ffe5ea5ee98 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 +RAX: ffffffffffffffda RBX: 00007f00d0db5fa0 RCX: 00007f00d0b8ebe9 +RDX: 0000000000400000 RSI: 0000000000c00000 RDI: 0000200000000000 +RBP: 00007ffe5ea5eef0 R08: 0000200000c00000 R09: 0000000000000000 +R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000002 +R13: 00007f00d0db5fa0 R14: 00007f00d0db5fa0 R15: 0000000000000005 + + +The underlying issue is that we recurse during the original page table +move, but not during the recovery move. + +Fix it by checking for both VMAs and performing the check before the +pmd_none() sanity check. + +Add a new helper where we perform+document that check for the PMD and PUD +level. + +Thanks to Harry for bisecting. + +Link: https://lkml.kernel.org/r/20250818175358.1184757-1-david@redhat.com +Fixes: 0cef0bb836e3 ("mm: clear uffd-wp PTE/PMD state on mremap()") +Signed-off-by: David Hildenbrand +Reported-by: syzbot+4d9a13f0797c46a29e42@syzkaller.appspotmail.com +Closes: https://lkml.kernel.org/r/689bb893.050a0220.7f033.013a.GAE@google.com +Tested-by: Harry Yoo +Cc: "Liam R. Howlett" +Cc: Lorenzo Stoakes +Cc: Vlastimil Babka +Cc: Jann Horn +Cc: Pedro Falcato +Cc: +Signed-off-by: Andrew Morton +--- + mm/mremap.c | 40 ++++++++++++++++++++-------------------- + 1 file changed, 20 insertions(+), 20 deletions(-) + +diff --git a/mm/mremap.c b/mm/mremap.c +index 75f44fc18692d5..2638a9d471bfd3 100644 +--- a/mm/mremap.c ++++ b/mm/mremap.c +@@ -270,15 +270,6 @@ static bool move_normal_pmd(struct vm_area_struct *vma, unsigned long old_addr, + if (WARN_ON_ONCE(!pmd_none(*new_pmd))) + return false; + +- /* If this pmd belongs to a uffd vma with remap events disabled, we need +- * to ensure that the uffd-wp state is cleared from all pgtables. This +- * means recursing into lower page tables in move_page_tables(), and we +- * can reuse the existing code if we simply treat the entry as "not +- * moved". +- */ +- if (vma_has_uffd_without_event_remap(vma)) +- return false; +- + /* + * We don't have to worry about the ordering of src and dst + * ptlocks because exclusive mmap_lock prevents deadlock. +@@ -328,15 +319,6 @@ static bool move_normal_pud(struct vm_area_struct *vma, unsigned long old_addr, + if (WARN_ON_ONCE(!pud_none(*new_pud))) + return false; + +- /* If this pud belongs to a uffd vma with remap events disabled, we need +- * to ensure that the uffd-wp state is cleared from all pgtables. This +- * means recursing into lower page tables in move_page_tables(), and we +- * can reuse the existing code if we simply treat the entry as "not +- * moved". +- */ +- if (vma_has_uffd_without_event_remap(vma)) +- return false; +- + /* + * We don't have to worry about the ordering of src and dst + * ptlocks because exclusive mmap_lock prevents deadlock. +@@ -523,6 +505,7 @@ unsigned long move_page_tables(struct vm_area_struct *vma, + struct mmu_notifier_range range; + pmd_t *old_pmd, *new_pmd; + pud_t *old_pud, *new_pud; ++ bool uffd_supports_move; + + if (!len) + return 0; +@@ -533,6 +516,22 @@ unsigned long move_page_tables(struct vm_area_struct *vma, + return move_hugetlb_page_tables(vma, new_vma, old_addr, + new_addr, len); + ++ /* ++ * If we are moving a VMA that has uffd-wp registered but with ++ * remap events disabled (new VMA will not be registered with uffd), we ++ * need to ensure that the uffd-wp state is cleared from all pgtables. ++ * This means recursing into lower page tables in move_page_tables(). ++ * ++ * We might get called with VMAs reversed when recovering from a ++ * failed page table move. In that case, the ++ * "old"-but-actually-"originally new" VMA during recovery will not have ++ * a uffd context. Recursing into lower page tables during the original ++ * move but not during the recovery move will cause trouble, because we ++ * run into already-existing page tables. So check both VMAs. ++ */ ++ uffd_supports_move = !vma_has_uffd_without_event_remap(vma) && ++ !vma_has_uffd_without_event_remap(new_vma); ++ + flush_cache_range(vma, old_addr, old_end); + mmu_notifier_range_init(&range, MMU_NOTIFY_UNMAP, 0, vma, vma->vm_mm, + old_addr, old_end); +@@ -558,7 +557,8 @@ unsigned long move_page_tables(struct vm_area_struct *vma, + old_pud, new_pud, need_rmap_locks)) + continue; + split_huge_pud(vma, old_pud, old_addr); +- } else if (IS_ENABLED(CONFIG_HAVE_MOVE_PUD) && extent == PUD_SIZE) { ++ } else if (IS_ENABLED(CONFIG_HAVE_MOVE_PUD) && ++ extent == PUD_SIZE && uffd_supports_move) { + + if (move_pgt_entry(NORMAL_PUD, vma, old_addr, new_addr, + old_pud, new_pud, true)) +@@ -582,7 +582,7 @@ unsigned long move_page_tables(struct vm_area_struct *vma, + if (pmd_trans_unstable(old_pmd)) + continue; + } else if (IS_ENABLED(CONFIG_HAVE_MOVE_PMD) && +- extent == PMD_SIZE) { ++ extent == PMD_SIZE && uffd_supports_move) { + /* + * If the extent is PMD-sized, try to speed the move by + * moving at the PMD level if possible. diff --git a/cve/CVE-2025-39775/6.1/base b/cve/CVE-2025-39775/6.1/base new file mode 100644 index 00000000..5c0fc3d6 --- /dev/null +++ b/cve/CVE-2025-39775/6.1/base @@ -0,0 +1 @@ +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2025-39775/6.1/fasttrack.json b/cve/CVE-2025-39775/6.1/fasttrack.json new file mode 100644 index 00000000..7c660e62 --- /dev/null +++ b/cve/CVE-2025-39775/6.1/fasttrack.json @@ -0,0 +1,32 @@ +{ + "series": "6.1", + "base": { + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" + }, + "incident": "CVE-2025-39775", + "outcome": "patched-needs-review", + "fixed_in": null, + "made": "2026-11-29T10:03:45Z", + "patches": [ + { + "series": "6.1", + "upstream": "772e5b4a5e8360743645b9a466842d16092c4f94", + "subject": "mm/mremap: fix WARN with uffd that has remap events disabled", + "source": "claude", + "cves": [ + "CVE-2025-39775" + ], + "kev": false, + "verdict": "claude-backport", + "reason": "backport made in work package; review before use", + "filename": "0001-772e5b4a5e83-mm-mremap-fix-warn-with-uffd-that-has-remap-events-d.patch", + "files": [], + "prerequisites": [], + "build_log": "", + "backport": "", + "bug_commits": [], + "unaffected": false + } + ] +} diff --git a/cve/CVE-2025-39775/6.1/series.conf b/cve/CVE-2025-39775/6.1/series.conf new file mode 100644 index 00000000..67195d72 --- /dev/null +++ b/cve/CVE-2025-39775/6.1/series.conf @@ -0,0 +1,5 @@ +# Generated by ksec-fasttrack. Do not edit by hand: the next run rewrites it. +# Security fixes not yet in a 6.1 stable release, verified to apply as a series, +# with no fuzz, on top of 1ca1436ccc68 (6.1.193). + +0001-772e5b4a5e83-mm-mremap-fix-warn-with-uffd-that-has-remap-events-d.patch diff --git a/cve/CVE-2026-46130/6.1/0001-430a05cb926f-dm-verity-fec-fix-reading-parity-bytes-split-across.patch b/cve/CVE-2026-46130/6.1/0001-430a05cb926f-dm-verity-fec-fix-reading-parity-bytes-split-across.patch new file mode 100644 index 00000000..7d45e499 --- /dev/null +++ b/cve/CVE-2026-46130/6.1/0001-430a05cb926f-dm-verity-fec-fix-reading-parity-bytes-split-across.patch @@ -0,0 +1,312 @@ +From mboxrd@z Thu Jan 1 00:00:00 1970 +X-Fasttrack-Source: stable-list +X-Fasttrack-Upstream: 430a05cb926f6bdf53e81460a2c3a553257f3f61 +X-Fasttrack-CVE: CVE-2026-46130 +Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 +ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; + t=1795930721; + b=bYb1QLSagf3Z3Vxr4DcpP4MOG3L64EXBnqk72LWJNTYhGKQoypXUvZcGeduSSjXD2DrG + C2558JpwLcl43gBe96eNjZlqupRrG+PZ2jaCA+H+T0T79eDDDQtWybMVngZ4a4ovRXrJn + ISAvon02VD2tQA2BBmTS6xDiqwt3dqnZ4AnUNnLVGxrfLUt4lOFSnUMLk7f1/CGJc3y9S + L2eEDzmXkmGSr9NlZVl994vyxmPJ6QlP3z24JUbX8Vuvliqog4P/QKDmnvg2i06uSQXH6 + qWaI5gv2qHuEiWjMoRXtuRLyhM3QmmUQAQTaoAxu33TDHwHZwACdM2522eXBvKh9uNw== +ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; + a=rsa-sha256; c=relaxed/relaxed; t=1795930721; + h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: + Content-Type:Content-Transfer-Encoding:Message-Id:X-B4-Tracking: + X-Change-ID:In-Reply-To:References:To:Cc:X-Mailer: + X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: + X-Original-From:Reply-To; + bh=CWOwrItBwG2+IWrsBsR3AsElydNP/Hw5uJUF1Pgc0wc=; + b=xi1J1r5WFaGqBA8C0xbcEhwETTsoU3uracM0GSzbaA38jdt/jQ75jqh0aTx6Cb0ov4Cq + rFfzX2F8cOFXSWRJPQnD3vQzp6fJkItB0Z1W5eTZ9j3jUSh92uASHPjTw4Z3A1B5bd7GY + ZS5LD2GXeGBaydRhsE/8yB51X2YUYGZAmG3hggMI1qC+FppioSeT2CcsCn4Yj8YXKd54e + vr86VtHyIispBewedUEib5TWjs30PyK025/h07LGkpyES/dL8CP1pW3L4z0mnWVMN+GMx + 2VCJJrqRMNR1cTD954ssoruYa7Y8ecvPsYSXFNMWkOtDVHchCC8WPwcO3iTd57VDG3w== +ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; + dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="fNTB/QF5"; + arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 +Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) + (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) + key-exchange X25519 server-signature ECDSA (prime256v1)) + (No client certificate requested) + by smtp.subspace.kernel.org (Postfix) with ESMTPS id 398DD606A326; + Sun, 29 Nov 2026 05:38:40 +0000 (UTC) +Authentication-Results: smtp.subspace.kernel.org; + dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fNTB/QF5 +Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 +ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; + t=1795930720; + b=LHiCPTmU6Ylc1f71TgKAq4cvO0k2n31W1Mam6EOPEYjUzWlxVItzrUxvaPWchZhWDjhb + Nft6LLrWNOfrVzwu+c4+56XK+5Ek3UyH2a7bCy9XiBEV10Zz0AJDkxAIHWLeUNWnpMh7o + WgYVWqds1QNRMxSXYu+d/XKyJHgIvZGdGaZaCMJ5Y1sO+K5dSmwJfRNxhmYikw2khPVgN + knW+B0urXg+AVaVxX5KbrlhzStG3EeAt0nkezwUluXZxg77w0NBrJ1dYx5XF9fOzRDpqm + b9vBCLcUksoaIEmYFQMh2kbHLvzDM8sG50Fz+xfS3BBj8ozOSpaRjqjx+juqZBYh5vA== +ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; + c=relaxed/relaxed; t=1795930720; + h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: + Content-Transfer-Encoding:Message-Id:X-B4-Tracking:X-Change-ID: + In-Reply-To:References:To:Cc:X-Mailer:X-Developer-Signature: + X-Developer-Key:X-Endpoint-Received:X-Original-From:Reply-To; + bh=CWOwrItBwG2+IWrsBsR3AsElydNP/Hw5uJUF1Pgc0wc=; + b=hHz4P0O2V0GkA/OmxRAH67/GXgrQ2uiq3NkmqDrRKmyl/ime7IhSV3p8F1ndO0de9oVJ + NkdIgy7BW971j0lfl3SSYnH659wC/udGZHcG5iKe6TuSUDcW4SX+AsKXDByq27lP5PeEt + noYXzJH8N8zcZDebluqcDCxuRdBWCHERs+6FVflL0ElznRn+XOO3HSvmwqvP2YENmgkMO + fYQkCAuUjp4MrZyjowu5uOTk5hrpahW1zfHxhcIgaJAJd5CcoCOR7/8cGMEDH8keItgIu + kuS8eXFf4GcnNhQEq/zVDHa6FYxLDRbpiL1OzDe5yA9R8M9M2HLJR1NdR2HPCA23hAA== +ARC-Authentication-Results: i=1; smtp.kernel.org; + arc=none smtp.remote-ip=100.80.115.77 +Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) + (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) + key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) + (No client certificate requested) + by smtp.kernel.org (Postfix) with ESMTPS id 7461A1F0089C; + Sun, 29 Nov 2026 05:38:25 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; + s=k20260515; t=1795930720; + bh=CWOwrItBwG2+IWrsBsR3AsElydNP/Hw5uJUF1Pgc0wc=; + h=From:Date:Subject:In-Reply-To:References:To:Cc:Reply-To; + b=fNTB/QF5ifyqpI69r3zkQ9pBw6/zlnpH+QyM85DfHXMaYlNkMpw5Lu+vgI23jVapL + eNJPcJOdOu281bEoqttPuOCNGaQCBscFB4cCyIv5dEBxdyYiFBIaZlh+AtQqXdphnF + R1Wts31ODBfnbPTmHR97PRa4f+djGCoyc76bptd6g67Bk9FQ9FbHdBcRXP7Ibo2/gR + +m8tgCvgQBCIlZPT9LEsXOThsbTxN7G9UrqFcwMp2mon1pySu9sGlq46JC+EMmaFBv + 268LfFAl255HaQvxnOyCBycSWc9w6j7Mx2T31itoXB3DJIdLYhkJhtTrA4a3mSEhLG + Fe0ZLHLJneONA== +Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) + by lkml.kernel.org (Postfix) with ESMTP id 01C6C4E330; + Sun, 29 Nov 2026 05:38:25 +0000 (UTC) +From: Dickson Wu via B4 Relay +Date: Sun, 29 Nov 2026 05:29:23 +0000 +Subject: [PATCH 6.1.y] dm-verity-fec: fix reading parity bytes split across + blocks (take 3) +X-Mailing-List: stable@vger.kernel.org +List-Id: +List-Post: +List-Help: +List-Subscribe: +List-Unsubscribe: +List-Owner: +Precedence: list +MIME-Version: 1.0 +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 7bit +Message-Id: <20261129-dmverity-fec-61-v1-1-89985e68573a@certik.com> +X-B4-Tracking: v=1; b=H4sIADK4C2sC/12Nyw7CIBREf6W5a28F0qD1V4wLHheLUTCAjU3Tf + xd053JO5syskCl5ynDqVkg0++xjqIHvOjCTCldCb2sGwYTkXIxoH3M1yoKODEqOA3NMjHo46CN + BtZ6JnH9/F88ge94vcPnh/NI3MqWttaJWmVAnFczUUKZgS4x3bHz/9wLb9gEQIgKFqgAAAA== +X-Change-ID: 20261129-dmverity-fec-61-40f029b47b8e +In-Reply-To: <2026051205-secular-hazing-d19e@gregkh> +References: <2026051205-secular-hazing-d19e@gregkh> +To: stable@vger.kernel.org +Cc: Eric Biggers , + Mikulas Patocka , dm-devel@lists.linux.dev +X-Mailer: b4 0.16.0 +X-Developer-Signature: v=1; a=ed25519-sha256; t=1795930162; l=7359; + i=dickson.wu@certik.com; s=dickson-b4; h=from:subject:message-id; + bh=yzH/jUe1QVGOIA1Fv2fHKJaVgMzNsbvW8yAlzI4q2CQ=; + b=kD2Sd94/flDt8UeY6MX6uSko46fMjIo0ZxecE5YNfF9TCgSFrXGsukDwG9Nc5oTVMFmIRU6iH + IRE3DXG99tsBDtrqAR7nR606gxT5HN5L3UWUwqYBFgqY427WMCtgeGe +X-Developer-Key: i=dickson.wu@certik.com; a=ed25519; + pk=fxH7FS4FdojeJSGLJzgKdfO51Rvr4EW30yinj2mc1vg= +X-Endpoint-Received: by B4 Relay for dickson.wu@certik.com/dickson-b4 with + auth_id=1647 +X-Original-From: Dickson Wu +Reply-To: dickson.wu@certik.com + +From: Eric Biggers + +commit 430a05cb926f6bdf53e81460a2c3a553257f3f61 upstream. + +fec_decode_bufs() assumes that the parity bytes of the first RS codeword +it decodes are never split across parity blocks. + +This assumption is false. Consider v->fec->block_size == 4096 && +v->fec->roots == 17 && fio->nbufs == 1, for example. In that case, each +call to fec_decode_bufs() consumes v->fec->roots * (fio->nbufs << +DM_VERITY_FEC_BUF_RS_BITS) = 272 parity bytes. + +Considering that the parity data for each message block starts on a +block boundary, the byte alignment in the parity data will iterate +through 272*i mod 4096 until the 3 parity blocks have been consumed. On +the 16th call (i=15), the alignment will be 4080 bytes into the first +block. Only 16 bytes remain in that block, but 17 parity bytes will be +needed. The code reads out-of-bounds from the parity block buffer. + +Fortunately this doesn't normally happen, since it can occur only for +certain non-default values of fec_roots *and* when the maximum number of +buffers couldn't be allocated due to low memory. For example with +block_size=4096 only the following cases are affected: + + fec_roots=17: nbufs in [1, 3, 5, 15] + fec_roots=19: nbufs in [1, 229] + fec_roots=21: nbufs in [1, 3, 5, 13, 15, 39, 65, 195] + fec_roots=23: nbufs in [1, 89] + +Regardless, fix it by refactoring how the parity blocks are read. + +Fixes: 6df90c02bae4 ("dm-verity FEC: Fix RS FEC repair for roots unaligned to block size (take 2)") +Cc: stable@vger.kernel.org +Signed-off-by: Eric Biggers +Signed-off-by: Mikulas Patocka +[ adapted to 6.1.y: use dm_bufio_read and the u8 parity buffer ] +Signed-off-by: Dickson Wu +--- +6.1 has no dm_bufio_read_with_ioprio() and keeps parity in a u8 buffer, +so this uses dm_bufio_read() and memcpy, the same as the 6.6.y backport +03348b440f69. + +Tested on v6.1.193: W=1 build of drivers/md/dm-verity-fec.o, base vs +patched, no new warnings. In a KVM guest, an FEC-enabled verity mapping +read and authenticated all 16 blocks on both kernels. The data was +valid, so the parity recovery path itself was not exercised. + +The backport and the test runs were prepared with AI coding tools +(OpenAI Codex agents, with review by Claude). I went over the result +before signing off. +--- + drivers/md/dm-verity-fec.c | 97 ++++++++++++++++++++-------------------------- + 1 file changed, 43 insertions(+), 54 deletions(-) + +diff --git a/drivers/md/dm-verity-fec.c b/drivers/md/dm-verity-fec.c +index b5b70cb522ac..47305ab92508 100644 +--- a/drivers/md/dm-verity-fec.c ++++ b/drivers/md/dm-verity-fec.c +@@ -55,36 +55,6 @@ static int fec_decode_rs8(struct dm_verity *v, struct dm_verity_fec_io *fio, + fio->erasures, 0, NULL); + } + +-/* +- * Read error-correcting codes for the requested RS block. Returns a pointer +- * to the data block. Caller is responsible for releasing buf. +- */ +-static u8 *fec_read_parity(struct dm_verity *v, u64 rsb, int index, +- unsigned int *offset, unsigned int par_buf_offset, +- struct dm_buffer **buf) +-{ +- u64 position, block, rem; +- u8 *res; +- +- /* We have already part of parity bytes read, skip to the next block */ +- if (par_buf_offset) +- index++; +- +- position = (index + rsb) * v->fec->roots; +- block = div64_u64_rem(position, v->fec->io_size, &rem); +- *offset = par_buf_offset ? 0 : (unsigned int)rem; +- +- res = dm_bufio_read(v->fec->bufio, block, buf); +- if (IS_ERR(res)) { +- DMERR("%s: FEC %llu: parity read failed (block %llu): %ld", +- v->data_dev->name, (unsigned long long)rsb, +- (unsigned long long)block, PTR_ERR(res)); +- *buf = NULL; +- } +- +- return res; +-} +- + /* Loop over each preallocated buffer slot. */ + #define fec_for_each_prealloc_buffer(__i) \ + for (__i = 0; __i < DM_VERITY_FEC_BUF_PREALLOC; __i++) +@@ -132,13 +102,27 @@ static int fec_decode_bufs(struct dm_verity *v, struct dm_verity_fec_io *fio, + { + int r, corrected = 0, res; + struct dm_buffer *buf; +- unsigned int n, i, offset, par_buf_offset = 0; ++ unsigned int n, i, parity_pos, to_copy; + u8 *par, *block, par_buf[DM_VERITY_FEC_RSM - DM_VERITY_FEC_MIN_RSN]; ++ u64 parity_block; + +- par = fec_read_parity(v, rsb, block_offset, &offset, +- par_buf_offset, &buf); +- if (IS_ERR(par)) ++ /* ++ * Compute the index of the first parity block that will be needed and ++ * the starting position in that block. Then read that block. ++ * ++ * io_size is always a power of 2, but roots might not be. Note that ++ * when it's not, a codeword's parity bytes can span a block boundary. ++ */ ++ parity_block = (rsb + block_offset) * v->fec->roots; ++ parity_pos = parity_block & (v->fec->io_size - 1); ++ parity_block >>= v->data_dev_block_bits; ++ par = dm_bufio_read(v->fec->bufio, parity_block, &buf); ++ if (IS_ERR(par)) { ++ DMERR("%s: FEC %llu: parity read failed (block %llu): %ld", ++ v->data_dev->name, (unsigned long long)rsb, ++ (unsigned long long)parity_block, PTR_ERR(par)); + return PTR_ERR(par); ++ } + + /* + * Decode the RS blocks we have in bufs. Each RS block results in +@@ -146,7 +130,31 @@ static int fec_decode_bufs(struct dm_verity *v, struct dm_verity_fec_io *fio, + */ + fec_for_each_buffer_rs_block(fio, n, i) { + block = fec_buffer_rs_block(v, fio, n, i); +- memcpy(&par_buf[par_buf_offset], &par[offset], v->fec->roots - par_buf_offset); ++ ++ /* ++ * Copy the next 'roots' parity bytes to 'par_buf', reading ++ * another parity block if needed. ++ */ ++ to_copy = min(v->fec->io_size - parity_pos, v->fec->roots); ++ memcpy(par_buf, &par[parity_pos], to_copy); ++ parity_pos += to_copy; ++ if (to_copy < v->fec->roots) { ++ parity_block++; ++ parity_pos = 0; ++ ++ dm_bufio_release(buf); ++ par = dm_bufio_read(v->fec->bufio, parity_block, &buf); ++ if (IS_ERR(par)) { ++ DMERR("%s: FEC %llu: parity read failed (block %llu): %ld", ++ v->data_dev->name, (unsigned long long)rsb, ++ (unsigned long long)parity_block, ++ PTR_ERR(par)); ++ return PTR_ERR(par); ++ } ++ memcpy(&par_buf[to_copy], par, v->fec->roots - to_copy); ++ parity_pos = v->fec->roots - to_copy; ++ } ++ + res = fec_decode_rs8(v, fio, block, par_buf, neras); + if (res < 0) { + r = res; +@@ -159,25 +167,6 @@ static int fec_decode_bufs(struct dm_verity *v, struct dm_verity_fec_io *fio, + block_offset++; + if (block_offset >= 1 << v->data_dev_block_bits) + goto done; +- +- /* Read the next block when we run out of parity bytes */ +- offset += (v->fec->roots - par_buf_offset); +- /* Check if parity bytes are split between blocks */ +- if (offset < v->fec->io_size && (offset + v->fec->roots) > v->fec->io_size) { +- par_buf_offset = v->fec->io_size - offset; +- memcpy(par_buf, &par[offset], par_buf_offset); +- offset += par_buf_offset; +- } else +- par_buf_offset = 0; +- +- if (offset >= v->fec->io_size) { +- dm_bufio_release(buf); +- +- par = fec_read_parity(v, rsb, block_offset, &offset, +- par_buf_offset, &buf); +- if (IS_ERR(par)) +- return PTR_ERR(par); +- } + } + done: + r = corrected; + +--- +base-commit: 1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 +change-id: 20261129-dmverity-fec-61-40f029b47b8e + +Best regards, +-- +Dickson Wu + + + diff --git a/cve/CVE-2026-46130/6.1/base b/cve/CVE-2026-46130/6.1/base new file mode 100644 index 00000000..5c0fc3d6 --- /dev/null +++ b/cve/CVE-2026-46130/6.1/base @@ -0,0 +1 @@ +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2026-46130/6.1/fasttrack.json b/cve/CVE-2026-46130/6.1/fasttrack.json new file mode 100644 index 00000000..505b3beb --- /dev/null +++ b/cve/CVE-2026-46130/6.1/fasttrack.json @@ -0,0 +1,32 @@ +{ + "series": "6.1", + "base": { + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" + }, + "incident": "CVE-2026-46130", + "outcome": "patched", + "fixed_in": null, + "made": null, + "patches": [ + { + "series": "6.1", + "upstream": "430a05cb926f6bdf53e81460a2c3a553257f3f61", + "subject": "dm-verity-fec: fix reading parity bytes split across blocks (take 3)", + "source": "stable-list", + "cves": [ + "CVE-2026-46130" + ], + "kev": false, + "verdict": "accepted", + "reason": "backport posted to stable@vger.kernel.org", + "filename": "0001-430a05cb926f-dm-verity-fec-fix-reading-parity-bytes-split-across.patch", + "files": [], + "prerequisites": [], + "build_log": "", + "backport": "", + "bug_commits": [], + "unaffected": false + } + ] +} diff --git a/cve/CVE-2026-46130/6.1/series.conf b/cve/CVE-2026-46130/6.1/series.conf new file mode 100644 index 00000000..3aedeedf --- /dev/null +++ b/cve/CVE-2026-46130/6.1/series.conf @@ -0,0 +1,5 @@ +# Generated by ksec-fasttrack. Do not edit by hand: the next run rewrites it. +# Security fixes not yet in a 6.1 stable release, verified to apply as a series, +# with no fuzz, on top of 1ca1436ccc68 (6.1.193). + +0001-430a05cb926f-dm-verity-fec-fix-reading-parity-bytes-split-across.patch diff --git a/cve/CVE-2026-53178/6.1/0001-88e994c57a79-staging-rtl8723bs-rtw-mlme-add-bounds-checks-before.patch b/cve/CVE-2026-53178/6.1/0001-88e994c57a79-staging-rtl8723bs-rtw-mlme-add-bounds-checks-before.patch index 8553c24b..dd93156f 100644 --- a/cve/CVE-2026-53178/6.1/0001-88e994c57a79-staging-rtl8723bs-rtw-mlme-add-bounds-checks-before.patch +++ b/cve/CVE-2026-53178/6.1/0001-88e994c57a79-staging-rtl8723bs-rtw-mlme-add-bounds-checks-before.patch @@ -1,16 +1,119 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -X-Fasttrack-Source: claude +From mboxrd@z Thu Jan 1 00:00:00 1970 +X-Fasttrack-Source: stable-list X-Fasttrack-Upstream: 88e994c57a79f62d5338231d8d37ee8dd98baffe X-Fasttrack-CVE: CVE-2026-53178 +Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 +ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; + t=1795702019; + b=aGMAl0GBYIc/57Ach7rkOPb6xEVmqzwSkn/jCd84hV01i8Wv92sMdUyHtoxrwiwnksal + ZfzhP/5mMGz3FMIMdWJ+uuAPiZZDNzl9EFFz5KBxWhzPiYeKxwQqhJKDlmYZc3sDTIy5d + SsSVwiDnXqU+b+ZEXeYrrM8IrN6QJy1aSD2BGCct9ofutneVU9H3zd4ZepLhSDPO/hXtG + 1P199u9R8y19akQQVaDoPz8fYQOPpmjDmW92XzWtI3uDKwiBHjbGDgIEBdMLWltM8Fjvm + 86Cy8yiV3EkTFS4FEIkw5JTYx2aOPbig9YEOCNBnaBeyx3hWcNpwUJjrcml9FpAiB8g== +ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; + a=rsa-sha256; c=relaxed/relaxed; t=1795702019; + h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: + Content-Type:Content-Transfer-Encoding:Message-Id:X-B4-Tracking: + X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: + X-Endpoint-Received:X-Original-From:Reply-To; + bh=MGU8wC5IXaP4BXUUigo+8F9FFrHbjACaFYZZTDbbovw=; + b=EcqcLmejE0eMQKWyMOC7Bgpsj6CYioNl6CGzdCkj5XTojFMG3cL93EaZezAQ/v/Zv0rZ + MKPRIrvT2QAbhKRcVBorZfZuqDgw7oPfqE8lU2wojP170bk8EdU1JqPl3coBLwjRxh0w4 + uMcO3rSQ4pVdhULP88GnjdvSCBA/yAnDTen6wTGpqHgzw6UQ47rUrgRekPBsbM0Li1rnY + pNCJeRRM5ljk+lDcHNqUJULH7nuFR96aXQjh0OAsJgd0cHYw7/C0pzoABLYd0J4MdPvbJ + +2cLb/KDucEXsHgYYb7fztxVyKFlE+NgVJz7MBk6OH9WTaxlPazN8czlxjhM6s1M3IA== +ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; + dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jOza6h7W; + arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 +Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) + (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) + key-exchange X25519 server-signature ECDSA (prime256v1)) + (No client certificate requested) + by smtp.subspace.kernel.org (Postfix) with ESMTPS id 514AD606A31E; + Thu, 26 Nov 2026 14:06:59 +0000 (UTC) +Authentication-Results: smtp.subspace.kernel.org; + dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jOza6h7W +Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 +ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; + t=1795702019; + b=bnaAMBa5Gj5Giel4rv9SVnUu6yPG95D8uOS6mA11bizVWEzhXvjIV2/Lp/5cZTuMDLN+ + LJClFVVjzHyGL5Is6TBwHOpUOB980XjxaZ+Nj9+M3mu4HETGuRnKxAm8q/+FjIKYQYojf + ZNoXtAC7QyBgdlXc4o4cBn7xWKqVNcJniBD3TQE/wySMgOD8XVB7kRl2Pf1Clr0kiVYaS + AeCQsWboV4oNH+o3BXFdgaW2yP8RF3ych83fDPmubeiID89w4smgBmKjTrg1UOF6qqMgf + ffrdNtYmO+txQXHWiBw+yrEHJu1l7+fRgTOmHT+j8GpAu+f+MJqD0AHkAxpdr1JTf7w== +ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; + c=relaxed/relaxed; t=1795702019; + h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: + Content-Transfer-Encoding:Message-Id:X-B4-Tracking:X-Change-ID:To:Cc: + X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: + X-Original-From:Reply-To; + bh=MGU8wC5IXaP4BXUUigo+8F9FFrHbjACaFYZZTDbbovw=; + b=PNUu3fHETIaDc7gAjOL6yYVRTXl8NWnFrb/fwUCyOETY4LTywMSQskpSCVxd/B3ZBEgO + f11C+nenA/3+j/SHnNFatlrPxGLeUKO+J6vj61ehoc6jSScGS0FVlnt1o+BGtv/ZAvarP + GUVGzZW/IAAOZ85lyQVdePhnKBaNFqOgVSte8rdMvJN3qlS90iNoyK8sh0wpm0CGS0tTs + VLj52BycMSuvnwPWy1Vm+mFQUIssai1kzRDgXguLhlNPGmT6cfeovFIQ2ja28r4bJ7kqw + BiKxOmE9vVT3HyKUzncXVeSzuSJ7ujIvqsy7jf+SiMNh3vTm5hxybWVre2M4YQk8/Xw== +ARC-Authentication-Results: i=1; smtp.kernel.org; + arc=none smtp.remote-ip=100.80.115.77 +Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) + (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) + key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) + (No client certificate requested) + by smtp.kernel.org (Postfix) with ESMTPS id D44851F000CF; + Thu, 26 Nov 2026 14:06:57 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; + s=k20260515; t=1795702018; + bh=MGU8wC5IXaP4BXUUigo+8F9FFrHbjACaFYZZTDbbovw=; + h=From:Date:Subject:To:Cc:Reply-To; + b=jOza6h7WiXlqRraZu4I+1asEP6LupW8Q57QEnjEGt8p+HEebLio4nj6h84LESIstZ + MO0R+o1ILXM3QL3ZAEN9nYT3n5dCxJ7bu3kCn+0dVjy6ojPR0bJyAshMB0V8KwNpQv + fqUubXafAHhkpyZewNSxLbLBJyzf7iKouT2sBqqr3rd04kgGuttZhIjOCg0Y+py0S0 + TWyT1tE+VME5C+edR13YjXYQWNdw5VbDqivStset/OS2NRpst44GGDZ6pSfr+LywD/ + dEqWyzwQenmKIPH7g4vWBDPiO+KptsmXug9Giu09XQTTFWjoXn2J8SFs8yT8Wk40Wk + ymUT4x1vAbCug== +Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) + by lkml.kernel.org (Postfix) with ESMTP id 5E71B4D55A; + Thu, 26 Nov 2026 14:06:57 +0000 (UTC) +From: Dickson Wu via B4 Relay +Date: Thu, 26 Nov 2026 14:04:40 +0000 +Subject: [PATCH 6.1.y] staging: rtl8723bs: rtw_mlme: add bounds checks + before ie_length subtraction +X-Mailing-List: stable@vger.kernel.org +List-Id: +List-Post: +List-Help: +List-Subscribe: +List-Unsubscribe: +List-Owner: +Precedence: list +MIME-Version: 1.0 +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 7bit +Message-Id: <20261126-so3-rtl-61-v1-1-96e1a9756c6d@certik.com> +X-B4-Tracking: v=1; b=H4sIAHc8CGsC/0WNwQrCMBBEf6Xs2a3dCCn4K+IhSTc2UhLJpqKU/ + ruJHjzOY+bNBsI5sMC52yDzM0hIsQY6dOBmE2+MYaoZ1KA0kdIo6YS5LKgJzUgDezUqTx7q4JH + Zh9dXdgHdU/+G6w/Lau/sShO1ojXCaLOJbm5IOE4lpQUbP/4PYN8/IDVoAKAAAAA= +X-Change-ID: 20261126-so3-rtl-61-a710ef272f1f +To: stable@vger.kernel.org +Cc: Salman Alghamdi , Luka Gejak , + linux-staging@lists.linux.dev +X-Mailer: b4 0.16.0 +X-Developer-Signature: v=1; a=ed25519-sha256; t=1795701879; l=3160; + i=dickson.wu@certik.com; s=dickson-b4; h=from:subject:message-id; + bh=Ys/Tq/5BzFedQ5FeXcg5z6hbVsf4FzrQ3pyU6hVxDVo=; + b=Aod7ceNg2c2M1EeuPXDQYQ14tfANlBzgEBeYhzCujpJepWpDLYaqagFWS+09GdG9mlk7ovGuU + Yd8FNfKNqv1AnDa+lBpn3yLHNqz6cmBLb9Rt5bi27WG2qvUGmOVdrS0 +X-Developer-Key: i=dickson.wu@certik.com; a=ed25519; + pk=fxH7FS4FdojeJSGLJzgKdfO51Rvr4EW30yinj2mc1vg= +X-Endpoint-Received: by B4 Relay for dickson.wu@certik.com/dickson-b4 with + auth_id=1647 +X-Original-From: Dickson Wu +Reply-To: dickson.wu@certik.com + From: Salman Alghamdi -Date: Wed, 13 May 2026 23:34:40 +0300 -Subject: [PATCH] staging: rtl8723bs: rtw_mlme: add bounds checks before - ie_length subtraction commit 88e994c57a79f62d5338231d8d37ee8dd98baffe upstream. -[ Backport: context only; 6.1 lacks the spacing cleanup around _FIXED_IE_LENGTH_ ] - Add guards to ensure ie_length is large enough before subtracting fixed IE offsets to prevent unsigned integer underflow. @@ -22,15 +125,33 @@ Signed-off-by: Salman Alghamdi Reviewed-by: Luka Gejak Link: https://patch.msgid.link/20260513203455.31792-1-me@cipherat.com Signed-off-by: Greg Kroah-Hartman +[ adapted to 6.1.y: preserve branch WPS helper-call spacing ] +Signed-off-by: Dickson Wu +--- +6.6.y and newer already have this fix. The added lines are the +same as upstream. The WPS lookup next to them keeps this branch's +older spacing, which is why it doesn't cherry-pick cleanly. + +Tested on v6.1.193: +- x86_64 allmodconfig W=1 build of + drivers/staging/rtl8723bs/core/rtw_mlme.o, base vs patched, no new + warnings +- booted the patched kernel with the driver built as a module under + QEMU/KVM. I don't have rtl8723bs hardware, so the scan path wasn't + run. + +The backport and the test runs were prepared with AI coding tools +(OpenAI Codex agents, with review by Claude). I went over the result +before signing off. --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c -index 7d55f6da0790..aac575f9554b 100644 +index ac3a08e6727f..8a83d1fedeac 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c -@@ -661,6 +661,8 @@ int rtw_is_desired_network(struct adapter *adapter, struct wlan_network *pnetwor +@@ -658,6 +658,8 @@ int rtw_is_desired_network(struct adapter *adapter, struct wlan_network *pnetwor privacy = pnetwork->network.privacy; if (check_fwstate(pmlmepriv, WIFI_UNDER_WPS)) { @@ -39,8 +160,8 @@ index 7d55f6da0790..aac575f9554b 100644 if (rtw_get_wps_ie(pnetwork->network.ies+_FIXED_IE_LENGTH_, pnetwork->network.ie_length-_FIXED_IE_LENGTH_, NULL, &wps_ielen)) return true; else -@@ -675,11 +677,15 @@ int rtw_is_desired_network(struct adapter *adapter, struct wlan_network *pnetwor - bselected = false; +@@ -672,11 +674,15 @@ int rtw_is_desired_network(struct adapter *adapter, struct wlan_network *pnetwor + bselected = false; if (psecuritypriv->ndisauthtype == Ndis802_11AuthModeWPA2PSK) { - p = rtw_get_ie(pnetwork->network.ies + _BEACON_IE_OFFSET_, WLAN_EID_RSN, &ie_len, (pnetwork->network.ie_length - _BEACON_IE_OFFSET_)); @@ -59,3 +180,14 @@ index 7d55f6da0790..aac575f9554b 100644 } } + +--- +base-commit: 1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 +change-id: 20261126-so3-rtl-61-a710ef272f1f + +Best regards, +-- +Dickson Wu + + + diff --git a/cve/CVE-2026-53178/6.1/base b/cve/CVE-2026-53178/6.1/base index 433951bd..5c0fc3d6 100644 --- a/cve/CVE-2026-53178/6.1/base +++ b/cve/CVE-2026-53178/6.1/base @@ -1 +1 @@ -08889840163ebcdb7e24bf7ec311bc2e6fc3aaea +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2026-53178/6.1/fasttrack.json b/cve/CVE-2026-53178/6.1/fasttrack.json index f8692aee..ef70fcbe 100644 --- a/cve/CVE-2026-53178/6.1/fasttrack.json +++ b/cve/CVE-2026-53178/6.1/fasttrack.json @@ -1,30 +1,32 @@ { "series": "6.1", "base": { - "commit": "08889840163ebcdb7e24bf7ec311bc2e6fc3aaea", - "version": "6.1.191" + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" }, "incident": "CVE-2026-53178", - "outcome": "patched-needs-review", + "outcome": "patched", "fixed_in": null, - "made": "2026-11-01T12:16:53Z", + "made": null, "patches": [ { "series": "6.1", "upstream": "88e994c57a79f62d5338231d8d37ee8dd98baffe", "subject": "staging: rtl8723bs: rtw_mlme: add bounds checks before ie_length subtraction", - "source": "claude", + "source": "stable-list", "cves": [ "CVE-2026-53178" ], "kev": false, - "verdict": "claude-backport", - "reason": "backport made in work package; review before use", + "verdict": "accepted", + "reason": "backport posted to stable@vger.kernel.org", "filename": "0001-88e994c57a79-staging-rtl8723bs-rtw-mlme-add-bounds-checks-before.patch", "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false } ] } diff --git a/cve/CVE-2026-53178/6.1/series.conf b/cve/CVE-2026-53178/6.1/series.conf index a0ee2976..4fbe99a3 100644 --- a/cve/CVE-2026-53178/6.1/series.conf +++ b/cve/CVE-2026-53178/6.1/series.conf @@ -1,5 +1,5 @@ # Generated by ksec-fasttrack. Do not edit by hand: the next run rewrites it. # Security fixes not yet in a 6.1 stable release, verified to apply as a series, -# with no fuzz, on top of 08889840163e (6.1.191). +# with no fuzz, on top of 1ca1436ccc68 (6.1.193). 0001-88e994c57a79-staging-rtl8723bs-rtw-mlme-add-bounds-checks-before.patch diff --git a/cve/CVE-2026-90373/6.1/0001-6486e11a6e2f-wifi-mt76-mt7915-clear-wcid-mask-under-mutex-after-r.patch b/cve/CVE-2026-90373/6.1/0001-6486e11a6e2f-wifi-mt76-mt7915-clear-wcid-mask-under-mutex-after-r.patch new file mode 100644 index 00000000..9d092212 --- /dev/null +++ b/cve/CVE-2026-90373/6.1/0001-6486e11a6e2f-wifi-mt76-mt7915-clear-wcid-mask-under-mutex-after-r.patch @@ -0,0 +1,180 @@ +From mboxrd@z Thu Jan 1 00:00:00 1970 +X-Fasttrack-Source: stable-list +X-Fasttrack-Upstream: 6486e11a6e2f679597af2d5bb48c3b07a2b2a7ba +X-Fasttrack-CVE: CVE-2026-90373 +Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 +ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; + t=1795695918; + b=rJdPrwlxyDMLkQlHPB7rMKsuCbNaG3sHG6qe7l8cVxgwuNE+sjI/rne3cSLOAe7LdA6b + 3dpoT6Ngh1bNF7zYYcJUm1zq+Mr0DU7dT2+zBIgZWPyQGpy/+ye72vzt81cDaHLv5XWft + 6lQrnFd46D7jZCsS2seCRIM8JPnmAbZdBjgYx/L+AF0L/o2rnhhEEYkfD0Iyco4F7SiFH + Js77e2+8wWBOHK5YBoIgNU4L+1etK/P/ETov3hsGHiXMsiL1wZQW6M58IWAaTYIigRgoa + ACLWvwmX9tsGDPDIGRo6ak7X7PQiSnoROhwMJhQW4FIok5h5OQJouccuZvIiy/GqXZQ== +ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; + a=rsa-sha256; c=relaxed/relaxed; t=1795695918; + h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: + Content-Type:Content-Transfer-Encoding:Message-Id:X-B4-Tracking: + X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: + X-Endpoint-Received:X-Original-From:Reply-To; + bh=Q96M7sSh5CzS3RUxF7E5kOzuouA27Dy0CEGL5b9oYiU=; + b=jEfJssQwv6LTwT4cDlo96qjc/Ouh4tORv+3Znx/tUo1bIlaQvEJfN3wvajSwQwBBRyjx + 6oFHgBm5kuyCrdsYH65uLPSDR0y46kIBOzqXpwLm9WfNLVtb2JrUrEdH0M3VW1S4VbUX+ + g2asybNj3tNISgG0W/1d/+EypGAbUtlUOkRokbmhfMJvaR/cByDor32OS+mje0MavbVpy + FNzhY9s+vho7Wo6zrM6cBq0YxZAuW4OjlyjpjXDZt8W1jsnSeFxRVkQDYZnSZPcX+uIKC + HrlmT2gxdh8qxXlpLkccp+3YmfUUiUiqMcqmulFy0u1ERQPUQfqIWaYO41sha3D7u9A== +ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; + dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BWC2WBT8; + arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 +Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) + (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) + key-exchange X25519 server-signature ECDSA (prime256v1)) + (No client certificate requested) + by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9A0B606A31E; + Thu, 26 Nov 2026 12:25:18 +0000 (UTC) +Authentication-Results: smtp.subspace.kernel.org; + dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BWC2WBT8 +Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 +ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; + t=1795695917; + b=SIDbcStLOIDU6adFx0fnYz5w2LlUJYZ0qB+SA/3EWP1IZGCTYuIUsHX2HZAGyvwJ6hDP + 2VE0Tz1O1yl+IdG5ofP6kPhU3ZhbXuk9bdVg/Bib3rf6eFEWjIG/Bwkw9enUQQ2yW3MF7 + tIXe5sv39tUlxpJ+2UWK90VsTe8uKemqN69xnCrjPA3gwCeK+LsuAmupZt3SD9NAXn12R + TTbSuODd3+bEj0DTSv0ATGvkwz7TWQKcLlv/l9DwWwy4ieD4uXfGbIjaAsI1okIfuTDp4 + N7bV0ND5z8LjVuy8a/ZlJpLWvLN2pf1xmg9Ug6rxXShxdqjk8TTJPMGYw7bVAen03MA== +ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; + c=relaxed/relaxed; t=1795695917; + h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: + Content-Transfer-Encoding:Message-Id:X-B4-Tracking:X-Change-ID:To:Cc: + X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: + X-Original-From:Reply-To; + bh=Q96M7sSh5CzS3RUxF7E5kOzuouA27Dy0CEGL5b9oYiU=; + b=fZu85eEsI61W1gD1qf2X0+DKbVF2byMaysAeofWhEyJ4abFy7woJiCs4MS315tXTtMux + KXcTF9moawNU1c0V6ZjrF6tKkc0OYvGmG22yfPwEDwO9ubP9hf+sgxAxcXgVhJr/5LPFY + j8mgXFk1y50JG6TPm5h+vLtDZlCjkPeDwJoAe2GVek0FtwEgRevDQ/R3A1j2CzeES5wtW + OjW6UB+Ae+VwF5uLOBn7ES2hEFtBHl1CgpuRNLGk0dCZf3KJEq1vO6Mb9OBbak4tLwJhM + KNUVHlnRMmCYX6JLtCU0tRIwvfb3dwS2XPEEvmvQblGnNP+rsDQuRZsPXoFuJCnCAJA== +ARC-Authentication-Results: i=1; smtp.kernel.org; + arc=none smtp.remote-ip=100.80.115.77 +Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) + (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) + key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) + (No client certificate requested) + by smtp.kernel.org (Postfix) with ESMTPS id 228F01F000EC; + Thu, 26 Nov 2026 12:24:57 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; + s=k20260515; t=1795695917; + bh=Q96M7sSh5CzS3RUxF7E5kOzuouA27Dy0CEGL5b9oYiU=; + h=From:Date:Subject:To:Cc:Reply-To; + b=BWC2WBT829QGWyesX9LJQ5VYl/BpNWCTjtocmzwaxg/gr2JHkxw0jY7NkhPEf4Q4q + SMGPFXDihDRPVZc5iYMwp0NVknwMWhFnPSi1A41lz49le/t6GtnjRB84RU3b4VIyzq + de8D/8txJep2Qjg/+DIk4mCk1+MUuOfuhnK0JQvKi2rDsD8fGpu2bm5PF9BwoNzbbz + 3nAwUcHBoVFxlzaF2L9jYPImVQ7XBtEvGBSm6Fg+/3XEPZMJojYxUDy9PiIA/A7HxL + ptvnwYHUFMWhq2M5P90Kxqecmxjg7AMbqRsYqHlcOnOKS1dp7Y5u41tk5ULTMNuuHY + RP+WM4kubcRHQ== +Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) + by lkml.kernel.org (Postfix) with ESMTP id A291E4D495; + Thu, 26 Nov 2026 12:24:56 +0000 (UTC) +From: Dickson Wu via B4 Relay +Date: Thu, 26 Nov 2026 12:22:52 +0000 +Subject: [PATCH 6.1.y] wifi: mt76: mt7915: clear wcid mask under mutex + after RCU pointer clear +X-Mailing-List: stable@vger.kernel.org +List-Id: +List-Post: +List-Help: +List-Subscribe: +List-Unsubscribe: +List-Owner: +Precedence: list +MIME-Version: 1.0 +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 7bit +Message-Id: <20261126-so1-mt-61-v1-1-0ffc1ce5c949@certik.com> +X-B4-Tracking: v=1; b=H4sIAJskCGsC/z2Myw7CIBAAf6XZs1u7mODjV4wHoIvFKBgWjabpv + wuaeJzJZGYQzoEFDt0MmZ9BQooVaNWBm0w8M4axMqhBaSKlURLhraAmtOS9Hbb7jaYd1P6e2Yf + X93UE3VP/htNPy8Ne2JX2aaE1wmiziW5qSjiOJaUrNr/+/2FZPlBoQo2eAAAA +X-Change-ID: 20261126-so1-mt-61-b1ffb0793618 +To: stable@vger.kernel.org +Cc: Felix Fietkau , Lorenzo Bianconi , + linux-wireless@vger.kernel.org +X-Mailer: b4 0.16.0 +X-Developer-Signature: v=1; a=ed25519-sha256; t=1795695771; l=2803; + i=dickson.wu@certik.com; s=dickson-b4; h=from:subject:message-id; + bh=BkE0m2cISHMa7wUZVEILWzsYSDPiQWwct5nsfphc2Ps=; + b=I1eHDPM93R5LGwF5WQQThC2waim3ncf0rHWdkp3ftjfd4fZp0Gh+BmO/2bW/rtb7VWoBHWKdX + 3wUUNMbuaboBpGG3QGBBMaeWYwUP30sRdo5dcLvzGsZPn3sCwX28chF +X-Developer-Key: i=dickson.wu@certik.com; a=ed25519; + pk=fxH7FS4FdojeJSGLJzgKdfO51Rvr4EW30yinj2mc1vg= +X-Endpoint-Received: by B4 Relay for dickson.wu@certik.com/dickson-b4 with + auth_id=1647 +X-Original-From: Dickson Wu +Reply-To: dickson.wu@certik.com + +From: Felix Fietkau + +commit 6486e11a6e2f679597af2d5bb48c3b07a2b2a7ba upstream. + +mt7915_remove_interface() cleared the wcid mask bit with no lock held and +before clearing the RCU wcid pointer. The mask is a non-atomic RMW shared +with the allocators, which all run under dev->mt76.mutex; on DBDC the two +wiphys share one mt76_dev, so this raced add_interface/sta_add on the +other band and could leak or double-hand-out a wcid. Clearing the bit +before the RCU pointer also let a concurrent allocation reuse the index +and publish its wcid, which the subsequent NULL assignment then wiped. +Move the clear into the existing mutex section, after the RCU pointer is +cleared. + +Fixes: f3049b88b2b3 ("wifi: mt76: mt7915: allocate vif wcid in the same range as stations") +Link: https://patch.msgid.link/20260722082610.2699628-8-nbd@nbd.name +Signed-off-by: Felix Fietkau +[ adapted to 6.1.y: context only, older mt7915_mcu_add_sta() and sta_poll_lock ] +Signed-off-by: Dickson Wu +--- +6.12.y and newer already have this fix. The moved line is the same as +upstream; only the surrounding context differs on this branch. + +Tested on v6.1.193: +- x86_64 allmodconfig W=1 build of + drivers/net/wireless/mediatek/mt76/mt7915/main.o, base vs patched, + no new warnings +- booted the patched kernel with CONFIG_MT7915E=y under QEMU/KVM. I + don't have mt7915 hardware, so the remove path wasn't run. + +The backport and the test runs were prepared with AI coding tools +(OpenAI Codex agents, with review by Claude). I went over the result +before signing off. +--- + drivers/net/wireless/mediatek/mt76/mt7915/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/main.c b/drivers/net/wireless/mediatek/mt76/mt7915/main.c +index dde451d818ba..6ed4c9879b6e 100644 +--- a/drivers/net/wireless/mediatek/mt76/mt7915/main.c ++++ b/drivers/net/wireless/mediatek/mt76/mt7915/main.c +@@ -297,7 +297,6 @@ static void mt7915_remove_interface(struct ieee80211_hw *hw, + + mt7915_mcu_add_bss_info(phy, vif, false); + mt7915_mcu_add_sta(dev, vif, NULL, false); +- mt76_wcid_mask_clear(dev->mt76.wcid_mask, mvif->sta.wcid.idx); + + mutex_lock(&dev->mt76.mutex); + mt76_testmode_reset(phy->mt76, true); +@@ -313,6 +312,7 @@ static void mt7915_remove_interface(struct ieee80211_hw *hw, + mutex_lock(&dev->mt76.mutex); + dev->mt76.vif_mask &= ~BIT_ULL(mvif->mt76.idx); + phy->omac_mask &= ~BIT_ULL(mvif->mt76.omac_idx); ++ mt76_wcid_mask_clear(dev->mt76.wcid_mask, mvif->sta.wcid.idx); + mutex_unlock(&dev->mt76.mutex); + + spin_lock_bh(&dev->sta_poll_lock); + +--- +base-commit: 1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 +change-id: 20261126-so1-mt-61-b1ffb0793618 + +Best regards, +-- +Dickson Wu + + + diff --git a/cve/CVE-2026-90373/6.1/base b/cve/CVE-2026-90373/6.1/base new file mode 100644 index 00000000..5c0fc3d6 --- /dev/null +++ b/cve/CVE-2026-90373/6.1/base @@ -0,0 +1 @@ +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2026-90373/6.1/fasttrack.json b/cve/CVE-2026-90373/6.1/fasttrack.json new file mode 100644 index 00000000..c66e446c --- /dev/null +++ b/cve/CVE-2026-90373/6.1/fasttrack.json @@ -0,0 +1,32 @@ +{ + "series": "6.1", + "base": { + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" + }, + "incident": "CVE-2026-90373", + "outcome": "patched", + "fixed_in": null, + "made": null, + "patches": [ + { + "series": "6.1", + "upstream": "6486e11a6e2f679597af2d5bb48c3b07a2b2a7ba", + "subject": "wifi: mt76: mt7915: clear wcid mask under mutex after RCU pointer clear", + "source": "stable-list", + "cves": [ + "CVE-2026-90373" + ], + "kev": false, + "verdict": "accepted", + "reason": "backport posted to stable@vger.kernel.org", + "filename": "0001-6486e11a6e2f-wifi-mt76-mt7915-clear-wcid-mask-under-mutex-after-r.patch", + "files": [], + "prerequisites": [], + "build_log": "", + "backport": "", + "bug_commits": [], + "unaffected": false + } + ] +} diff --git a/cve/CVE-2026-90373/6.1/series.conf b/cve/CVE-2026-90373/6.1/series.conf new file mode 100644 index 00000000..4d15a8b5 --- /dev/null +++ b/cve/CVE-2026-90373/6.1/series.conf @@ -0,0 +1,5 @@ +# Generated by ksec-fasttrack. Do not edit by hand: the next run rewrites it. +# Security fixes not yet in a 6.1 stable release, verified to apply as a series, +# with no fuzz, on top of 1ca1436ccc68 (6.1.193). + +0001-6486e11a6e2f-wifi-mt76-mt7915-clear-wcid-mask-under-mutex-after-r.patch diff --git a/cve/CVE-2026-98295/6.1/0001-d236517c264e-bluetooth-coredump-quiesce-dump-work-on-unregister.patch b/cve/CVE-2026-98295/6.1/0001-d236517c264e-bluetooth-coredump-quiesce-dump-work-on-unregister.patch new file mode 100644 index 00000000..ca1a9539 --- /dev/null +++ b/cve/CVE-2026-98295/6.1/0001-d236517c264e-bluetooth-coredump-quiesce-dump-work-on-unregister.patch @@ -0,0 +1,192 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +X-Fasttrack-Source: claude +X-Fasttrack-Upstream: d236517c264e41dc09833c708ef23bccb7a91219 +X-Fasttrack-CVE: CVE-2026-98295 +From: Weiming Shi +Date: Sun, 6 Sep 2026 23:43:32 +0800 +Subject: [PATCH] Bluetooth: coredump: Quiesce dump work on unregister + +commit d236517c264e41dc09833c708ef23bccb7a91219 upstream. + +[ Backport: 6.1 uses cancel_work_sync() in hci_unregister_dev(); call hci_devcd_shutdown() after error_reset is cancelled, before hci_cmd_sync_clear(), as upstream does. ] +[ Backport: coredump.h has no hci_devcd_state_name() in 6.1; context adjusted only. ] + +hci_devcd_handle_pkt_init() arms dump_timeout and coredump producers +queue dump_rx without holding an hdev reference. Unregister leaves both +works live, so disconnecting during an active dump lets them access hdev +after hci_release_dev() frees it. + +Shut down coredump processing during unregister. Close the producer gate +under dump_q.lock before disabling both works, then free the active buffer +and queued packets under hci_dev_lock. Serializing the gate with enqueue +prevents controller-specific workers from adding packets after the final +purge. + +Fixes: 9695ef876fd1 ("Bluetooth: Add support for hci devcoredump") +Reported-by: syzbot+b170dbf55520ebf5969a@syzkaller.appspotmail.com +Closes: https://syzkaller.appspot.com/bug?extid=b170dbf55520ebf5969a +Reported-by: Aby Sam Ross +Link: https://lore.kernel.org/r/20260322210849.68743-1-abysamross@gmail.com +Suggested-by: Aby Sam Ross +Reported-by: Tristan Madani +Link: https://lore.kernel.org/r/20260814231248.3096377-1-tristmd@gmail.com +Reported-by: Xiang Mei +Assisted-by: OpenAI Codex:gpt-5 +Signed-off-by: Weiming Shi +Reported-by: Xiang Mei +Signed-off-by: Luiz Augusto von Dentz +--- + include/net/bluetooth/coredump.h | 2 + + net/bluetooth/coredump.c | 65 +++++++++++++++++++++----------- + net/bluetooth/hci_core.c | 1 + + 3 files changed, 47 insertions(+), 21 deletions(-) + +diff --git a/include/net/bluetooth/coredump.h b/include/net/bluetooth/coredump.h +index 72f51b587a0464..00c12c7ac042f0 100644 +--- a/include/net/bluetooth/coredump.h ++++ b/include/net/bluetooth/coredump.h +@@ -61,6 +61,7 @@ struct hci_devcoredump { + #ifdef CONFIG_DEV_COREDUMP + + void hci_devcd_reset(struct hci_dev *hdev); ++void hci_devcd_shutdown(struct hci_dev *hdev); + void hci_devcd_rx(struct work_struct *work); + void hci_devcd_timeout(struct work_struct *work); + +@@ -75,6 +76,7 @@ int hci_devcd_abort(struct hci_dev *hdev); + #else + + static inline void hci_devcd_reset(struct hci_dev *hdev) {} ++static inline void hci_devcd_shutdown(struct hci_dev *hdev) {} + static inline void hci_devcd_rx(struct work_struct *work) {} + static inline void hci_devcd_timeout(struct work_struct *work) {} + +diff --git a/net/bluetooth/coredump.c b/net/bluetooth/coredump.c +index d2d2624ec708fe..e0f228bc8fa94b 100644 +--- a/net/bluetooth/coredump.c ++++ b/net/bluetooth/coredump.c +@@ -106,6 +106,22 @@ static void hci_devcd_free(struct hci_dev *hdev) + hci_devcd_reset(hdev); + } + ++void hci_devcd_shutdown(struct hci_dev *hdev) ++{ ++ unsigned long flags; ++ ++ spin_lock_irqsave(&hdev->dump.dump_q.lock, flags); ++ hdev->dump.supported = false; ++ spin_unlock_irqrestore(&hdev->dump.dump_q.lock, flags); ++ ++ disable_work_sync(&hdev->dump.dump_rx); ++ disable_delayed_work_sync(&hdev->dump.dump_timeout); ++ ++ hci_dev_lock(hdev); ++ hci_devcd_free(hdev); ++ hci_dev_unlock(hdev); ++} ++ + /* Call with hci_dev_lock only. */ + static int hci_devcd_alloc(struct hci_dev *hdev, u32 size) + { +@@ -427,7 +443,29 @@ EXPORT_SYMBOL(hci_devcd_register); + + static inline bool hci_devcd_enabled(struct hci_dev *hdev) + { +- return hdev->dump.supported; ++ return READ_ONCE(hdev->dump.supported); ++} ++ ++static int hci_devcd_queue(struct hci_dev *hdev, struct sk_buff *skb) ++{ ++ unsigned long flags; ++ int err = 0; ++ ++ spin_lock_irqsave(&hdev->dump.dump_q.lock, flags); ++ if (!hdev->dump.supported) ++ err = -EOPNOTSUPP; ++ else ++ __skb_queue_tail(&hdev->dump.dump_q, skb); ++ spin_unlock_irqrestore(&hdev->dump.dump_q.lock, flags); ++ ++ if (err) { ++ kfree_skb(skb); ++ return err; ++ } ++ ++ queue_work(hdev->workqueue, &hdev->dump.dump_rx); ++ ++ return 0; + } + + int hci_devcd_init(struct hci_dev *hdev, u32 dump_size) +@@ -444,10 +482,7 @@ int hci_devcd_init(struct hci_dev *hdev, u32 dump_size) + hci_dmp_cb(skb)->pkt_type = HCI_DEVCOREDUMP_PKT_INIT; + put_unaligned_le32(dump_size, skb_put(skb, 4)); + +- skb_queue_tail(&hdev->dump.dump_q, skb); +- queue_work(hdev->workqueue, &hdev->dump.dump_rx); +- +- return 0; ++ return hci_devcd_queue(hdev, skb); + } + EXPORT_SYMBOL(hci_devcd_init); + +@@ -463,10 +498,7 @@ int hci_devcd_append(struct hci_dev *hdev, struct sk_buff *skb) + + hci_dmp_cb(skb)->pkt_type = HCI_DEVCOREDUMP_PKT_SKB; + +- skb_queue_tail(&hdev->dump.dump_q, skb); +- queue_work(hdev->workqueue, &hdev->dump.dump_rx); +- +- return 0; ++ return hci_devcd_queue(hdev, skb); + } + EXPORT_SYMBOL(hci_devcd_append); + +@@ -488,10 +520,7 @@ int hci_devcd_append_pattern(struct hci_dev *hdev, u8 pattern, u32 len) + hci_dmp_cb(skb)->pkt_type = HCI_DEVCOREDUMP_PKT_PATTERN; + skb_put_data(skb, &p, sizeof(p)); + +- skb_queue_tail(&hdev->dump.dump_q, skb); +- queue_work(hdev->workqueue, &hdev->dump.dump_rx); +- +- return 0; ++ return hci_devcd_queue(hdev, skb); + } + EXPORT_SYMBOL(hci_devcd_append_pattern); + +@@ -508,10 +537,7 @@ int hci_devcd_complete(struct hci_dev *hdev) + + hci_dmp_cb(skb)->pkt_type = HCI_DEVCOREDUMP_PKT_COMPLETE; + +- skb_queue_tail(&hdev->dump.dump_q, skb); +- queue_work(hdev->workqueue, &hdev->dump.dump_rx); +- +- return 0; ++ return hci_devcd_queue(hdev, skb); + } + EXPORT_SYMBOL(hci_devcd_complete); + +@@ -528,9 +554,6 @@ int hci_devcd_abort(struct hci_dev *hdev) + + hci_dmp_cb(skb)->pkt_type = HCI_DEVCOREDUMP_PKT_ABORT; + +- skb_queue_tail(&hdev->dump.dump_q, skb); +- queue_work(hdev->workqueue, &hdev->dump.dump_rx); +- +- return 0; ++ return hci_devcd_queue(hdev, skb); + } + EXPORT_SYMBOL(hci_devcd_abort); +diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c +index 7ec3af3a4d0b4f..9d0e76ad99e02c 100644 +--- a/net/bluetooth/hci_core.c ++++ b/net/bluetooth/hci_core.c +@@ -2722,6 +2722,7 @@ void hci_unregister_dev(struct hci_dev *hdev) + cancel_work_sync(&hdev->tx_work); + cancel_work_sync(&hdev->power_on); + cancel_work_sync(&hdev->error_reset); ++ hci_devcd_shutdown(hdev); + + hci_cmd_sync_clear(hdev); + diff --git a/cve/CVE-2026-98295/6.1/base b/cve/CVE-2026-98295/6.1/base new file mode 100644 index 00000000..5c0fc3d6 --- /dev/null +++ b/cve/CVE-2026-98295/6.1/base @@ -0,0 +1 @@ +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2026-98295/6.1/fasttrack.json b/cve/CVE-2026-98295/6.1/fasttrack.json new file mode 100644 index 00000000..80b6cffb --- /dev/null +++ b/cve/CVE-2026-98295/6.1/fasttrack.json @@ -0,0 +1,32 @@ +{ + "series": "6.1", + "base": { + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" + }, + "incident": "CVE-2026-98295", + "outcome": "patched-needs-review", + "fixed_in": null, + "made": "2026-11-29T10:08:01Z", + "patches": [ + { + "series": "6.1", + "upstream": "d236517c264e41dc09833c708ef23bccb7a91219", + "subject": "Bluetooth: coredump: Quiesce dump work on unregister", + "source": "claude", + "cves": [ + "CVE-2026-98295" + ], + "kev": false, + "verdict": "claude-backport", + "reason": "backport made in work package; review before use", + "filename": "0001-d236517c264e-bluetooth-coredump-quiesce-dump-work-on-unregister.patch", + "files": [], + "prerequisites": [], + "build_log": "", + "backport": "", + "bug_commits": [], + "unaffected": false + } + ] +} diff --git a/cve/CVE-2026-98295/6.1/series.conf b/cve/CVE-2026-98295/6.1/series.conf new file mode 100644 index 00000000..fea2ca28 --- /dev/null +++ b/cve/CVE-2026-98295/6.1/series.conf @@ -0,0 +1,5 @@ +# Generated by ksec-fasttrack. Do not edit by hand: the next run rewrites it. +# Security fixes not yet in a 6.1 stable release, verified to apply as a series, +# with no fuzz, on top of 1ca1436ccc68 (6.1.193). + +0001-d236517c264e-bluetooth-coredump-quiesce-dump-work-on-unregister.patch diff --git a/cve/CVE-2026-99342/6.1/0001-eacdb76c5f04-kvm-x86-xen-enforce-4-byte-alignment-of-vcpu-info-re.patch b/cve/CVE-2026-99342/6.1/0001-eacdb76c5f04-kvm-x86-xen-enforce-4-byte-alignment-of-vcpu-info-re.patch new file mode 100644 index 00000000..0abb6b6c --- /dev/null +++ b/cve/CVE-2026-99342/6.1/0001-eacdb76c5f04-kvm-x86-xen-enforce-4-byte-alignment-of-vcpu-info-re.patch @@ -0,0 +1,120 @@ +From mboxrd@z Thu Jan 1 00:00:00 1970 +X-Fasttrack-Source: stable-list +X-Fasttrack-Upstream: eacdb76c5f04956035c5d7f7e1973028f30684a2 +X-Fasttrack-CVE: CVE-2026-99342 +Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 +ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; + t=1794365669; + b=iqbGgUJu9cJG5/kVlzGm2y0xU0K91sWpxNgLOmtdlcSLXjK87HkXtmtFUMnIudUs82y3 + j8v0/KVb5Osv5vZrlcMDdHQ09w4I6UVZyr135kYUa7oPNeexoFMoop8L0WD9uibyWp6x4 + L2Q3ffzagvr83zH3LqBnNxv/L7kXVcf9YMc78iCQSqrNVmS8tHv2OoPQGQiajE7EWLpq0 + Y+Aa7voAr9XyJ52pBQARevOgK5dmAI3xInEFNuF8r++nNlYeochx7lBZLMUfOvibnRdz9 + CD81N6B0puvzTBmjH7USvlsotljYN6owGp8ueWb8jix010Q+Rzl8FWmRomFvSNRF7hw== +ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; + a=rsa-sha256; c=relaxed/relaxed; t=1794365669; + h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: + In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; + bh=Z1DTqUxKGtgSlkjsnQi5QxSE4E0JKyNWCtvRQDTXwwI=; + b=bvuSgZRquOkyzQM5e3Dxp9duimiFsiAm58T+u9Wf7hYTVB3nWfNh0dF3Xyn0n/nTsJCH + ZH0mMRPvCJaLYcmLYvgCxTiUhuIGyPtgmdisBy0XCjcrJIaQvV3/JvlLuN4PZHBoPvZPM + aPlkXqidRlXHHITCS3quTxTTO4c/KRHZBQCwzuqXVIbqSkCA/ieA0j7RCDUUPfz0t5x1f + MVqmHJVYv9v4G+ElfcDkOhOuZ81U10Y9fqF0HpCu2mBdbyWRG0geXDJNIZrBLsUIAw4sh + LsH68WU4ACAiW1AFnDfMVVe8B9y8qmp0+EAF4TY7q+Nj1K0yzXnClEQPZMyLyFqrrYw== +ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; + dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iDJT4k2d; + arc=none smtp.remote-ip=100.103.45.18 +Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) + (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) + key-exchange X25519 server-signature ECDSA (prime256v1)) + (No client certificate requested) + by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3871606A320 + for ; Wed, 11 Nov 2026 02:54:28 +0000 (UTC) +Authentication-Results: smtp.subspace.kernel.org; + dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iDJT4k2d +Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA84B1F0089F; + Wed, 11 Nov 2026 02:54:27 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; + s=k20260515; t=1794365668; + bh=Z1DTqUxKGtgSlkjsnQi5QxSE4E0JKyNWCtvRQDTXwwI=; + h=From:To:Cc:Subject:Date:In-Reply-To:References; + b=iDJT4k2dowDiPHPvv1o+v0qKaEkuf19y9K2Q5mJSR8qq6YWvQJ422qkobbcccQNtI + NccFYysUJWxdxqI3F9zWSyvRw9h+tAOuCDyRuB8WtEA0hGrJaTTyovbqnHHWumlx0k + bWhCIYDXQJhpIe8rRluctaRknRiJglqEHAtr8f2uSLp1SpuwU0mBhkMSQ5cslXye9L + DdYGTc3BN7GekGnWLAG4fQJOkhJiZG5Z7McbDKWoP5I/UaLHRPxPixeOkNKYart6ax + x0gk4QQYcX112JCXZua/y+kN2nkfVcaQyWBnRPh4moDq/6pgQWRtzYNel+wqohVJR1 + j3cdyqe+0akmQ== +From: Sasha Levin +To: stable@vger.kernel.org +Cc: David Woodhouse , + sashiko-bot@kernel.org, + Paul Durrant , + Paolo Bonzini , + Sasha Levin +Subject: [PATCH 6.1.y] KVM: x86/xen: Enforce 4-byte alignment of vcpu_info registration +Date: Tue, 10 Nov 2026 21:54:26 -0500 +Message-ID: <20261111025313.769639-1-sashal@kernel.org> +X-Mailer: git-send-email 2.53.0 +In-Reply-To: <20261107054109-failed-6.1-eacdb76c5f04@kernel.org> +References: <20261107054109-failed-6.1-eacdb76c5f04@kernel.org> +X-Mailing-List: stable@vger.kernel.org +List-Id: +List-Post: +List-Help: +List-Subscribe: +List-Unsubscribe: +List-Owner: +Precedence: list +MIME-Version: 1.0 +Content-Transfer-Encoding: 8bit + +From: David Woodhouse + +[ Upstream commit eacdb76c5f04956035c5d7f7e1973028f30684a2 ] + +Xen's map_guest_area() enforces that vcpu_info is aligned to +sizeof(xen_ulong_t). KVM has no such check, allowing a guest to +register vcpu_info at an arbitrary byte alignment. + +Enforce unconditional 4-byte alignment regardless of the current +shinfo mode. This is sufficient because subsequent commits ensure +that all locked atomic operations on vcpu_info fields use at most +32-bit accesses. Return -ENXIO on failure, matching Xen's +map_guest_area() behaviour for unaligned requests. + +Originally observed in review of an unrelated patch: +https://lore.kernel.org/all/20260604193554.1BA311F00893@smtp.kernel.org/ + +Cc: stable@vger.kernel.org +Fixes: 73e69a86347a ("KVM: x86/xen: register vcpu info") +Reported-by: sashiko-bot@kernel.org +Closes: https://lore.kernel.org/all/20260604193554.1BA311F00893@smtp.kernel.org +Assisted-by: Kiro:claude-opus-4.6-1m +Signed-off-by: David Woodhouse +Reviewed-by: Paul Durrant +Link: https://patch.msgid.link/20260831213632.81023-7-dwmw2@infradead.org +Signed-off-by: Paolo Bonzini +[ sashal: Omitted the HVA alignment check because only GPA registration is supported. ] +Signed-off-by: Sasha Levin +--- + arch/x86/kvm/xen.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/arch/x86/kvm/xen.c b/arch/x86/kvm/xen.c +index baa0c6d180962..e2900e5b0bedb 100644 +--- a/arch/x86/kvm/xen.c ++++ b/arch/x86/kvm/xen.c +@@ -569,6 +569,10 @@ int kvm_xen_vcpu_set_attr(struct kvm_vcpu *vcpu, struct kvm_xen_vcpu_attr *data) + break; + } + ++ r = -ENXIO; ++ if (!IS_ALIGNED(data->u.gpa, sizeof(u32))) ++ break; ++ + r = kvm_gpc_activate(vcpu->kvm, + &vcpu->arch.xen.vcpu_info_cache, NULL, + KVM_HOST_USES_PFN, data->u.gpa, +-- +2.53.0 + + diff --git a/cve/CVE-2026-99342/6.1/base b/cve/CVE-2026-99342/6.1/base new file mode 100644 index 00000000..5c0fc3d6 --- /dev/null +++ b/cve/CVE-2026-99342/6.1/base @@ -0,0 +1 @@ +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2026-99342/6.1/fasttrack.json b/cve/CVE-2026-99342/6.1/fasttrack.json new file mode 100644 index 00000000..96edd8a2 --- /dev/null +++ b/cve/CVE-2026-99342/6.1/fasttrack.json @@ -0,0 +1,32 @@ +{ + "series": "6.1", + "base": { + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" + }, + "incident": "CVE-2026-99342", + "outcome": "patched", + "fixed_in": null, + "made": null, + "patches": [ + { + "series": "6.1", + "upstream": "eacdb76c5f04956035c5d7f7e1973028f30684a2", + "subject": "KVM: x86/xen: Enforce 4-byte alignment of vcpu_info registration", + "source": "stable-list", + "cves": [ + "CVE-2026-99342" + ], + "kev": false, + "verdict": "accepted", + "reason": "backport posted to stable@vger.kernel.org", + "filename": "0001-eacdb76c5f04-kvm-x86-xen-enforce-4-byte-alignment-of-vcpu-info-re.patch", + "files": [], + "prerequisites": [], + "build_log": "", + "backport": "", + "bug_commits": [], + "unaffected": false + } + ] +} diff --git a/cve/CVE-2026-99342/6.1/series.conf b/cve/CVE-2026-99342/6.1/series.conf new file mode 100644 index 00000000..7fded850 --- /dev/null +++ b/cve/CVE-2026-99342/6.1/series.conf @@ -0,0 +1,5 @@ +# Generated by ksec-fasttrack. Do not edit by hand: the next run rewrites it. +# Security fixes not yet in a 6.1 stable release, verified to apply as a series, +# with no fuzz, on top of 1ca1436ccc68 (6.1.193). + +0001-eacdb76c5f04-kvm-x86-xen-enforce-4-byte-alignment-of-vcpu-info-re.patch diff --git a/cve/CVE-2026-99360/6.1/0001-14996e662f3b-nfsd-set-nn-cld-net-before-registering-the-cld-pipe.patch b/cve/CVE-2026-99360/6.1/0001-14996e662f3b-nfsd-set-nn-cld-net-before-registering-the-cld-pipe.patch new file mode 100644 index 00000000..d78e4a8c --- /dev/null +++ b/cve/CVE-2026-99360/6.1/0001-14996e662f3b-nfsd-set-nn-cld-net-before-registering-the-cld-pipe.patch @@ -0,0 +1,134 @@ +From mboxrd@z Thu Jan 1 00:00:00 1970 +X-Fasttrack-Source: stable-list +X-Fasttrack-Upstream: 14996e662f3b734427e2d645cacffc27b779f7d1 +X-Fasttrack-CVE: CVE-2026-99360 +Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 +ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; + t=1795045951; + b=gWbJVAcSZ32jqcaFkSPvG9leYWKKklwSsPwXCe/z1Wwk/0VGG+9Azan0xZaTXO7iyowI + JqLAEEDRW8FVqDIqJ4AaAx3Kq7UjVOUIokfsIHjgwOT3KoUlz0huNSTx4B7VqzKvmEU/n + 8JZ/A4Uf5F2CApbbdiVfL8wZVE2Q2aMT2mdj2aYfT+0eCD9/cws+t1oRxMT6A9n8uVv3y + TnkkXh62eyQBh3jIyrlx9j+01k0TYbqEjUy7sTNWK2vHfXzKVVSfIyKqk4dUt7A4VJrHL + XR3+h/QYT0YpdalYkzYaRxtAHWPrqqVva1QlK/um3qtoX2DDwwuJcd+uaV0ZjWmFQKw== +ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; + a=rsa-sha256; c=relaxed/relaxed; t=1795045951; + h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: + In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: + MIME-Version:Content-Transfer-Encoding; + bh=5WWhqUNm433OdyOoFVAjLRdOE0q63KKkx6kRZ4ct9o4=; + b=FvB9EBPhLv6NFjAM84J24wM1nYBnE5J3uJohQCTaPDRq7xKq3IVbmc2YKqbodG4ePepY + COIOwzp9VnJnmLfkSG0xaeRraWZaksSeCqI5fw/HKvPKHMVhGo4ThDfEXG4JVX/0hHDlC + DUMH6s4XVHcalk0bgH6dzFM9y90mma9NeTV+LIiudNusbSrTL8/zezVWTG125nmHXxrhE + rm6z4ToKK9n4Am2g6f2PhWaiTi2NND5jODeE3BF0A60R7K/wdk9ojQQyCgGiujakvEhJ9 + 8ksUyIOMCbITBF7LMSnBl4p1un0AXlJuLzUagdk4VlbJDOdcBuc+LdsrWzG1+4zfEQg== +ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; + dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=huvryaMG; + arc=none smtp.remote-ip=100.103.45.18 +Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) + (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) + key-exchange X25519 server-signature ECDSA (prime256v1)) + (No client certificate requested) + by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FE1D606A32C; + Wed, 18 Nov 2026 23:52:31 +0000 (UTC) +Authentication-Results: smtp.subspace.kernel.org; + dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=huvryaMG +Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84C651F000C4; + Wed, 18 Nov 2026 23:52:30 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; + s=korg; t=1795045951; + bh=5WWhqUNm433OdyOoFVAjLRdOE0q63KKkx6kRZ4ct9o4=; + h=From:To:Cc:Subject:Date:In-Reply-To:References; + b=huvryaMGF2d2krYswobM6K74y40LYQy0WsWl/46R6KC+8YIU5aOUsJ5bHc7YYJ9kS + mmZPyQVDSEmgIVt95pvcSJmpgz5URx+5P0NBuj6u75ZOudkr6dj98geX87KKEzEoP1 + 1C7+cD+TnsP6zjWyrICMOL11GVq7LiNG6HmP8fLc= +From: Greg Kroah-Hartman +To: stable@vger.kernel.org +Cc: Greg Kroah-Hartman , + patches@lists.linux.dev, + Chuck Lever , + Sasha Levin +Subject: [PATCH 6.1 1106/2857] NFSD: Set nn->cld_net before registering the cld pipe +Date: Wed, 18 Nov 2026 15:35:40 +0100 +Message-ID: <20261118150241.457289157@linuxfoundation.org> +X-Mailer: git-send-email 2.56.0 +In-Reply-To: <20261118150201.293410965@linuxfoundation.org> +References: <20261118150201.293410965@linuxfoundation.org> +User-Agent: quilt/0.69 +X-stable: review +X-Patchwork-Hint: ignore +X-Mailing-List: stable@vger.kernel.org +List-Id: +List-Post: +List-Help: +List-Subscribe: +List-Unsubscribe: +List-Owner: +Precedence: list +MIME-Version: 1.0 +Content-Transfer-Encoding: 8bit + +6.1-stable review patch. If anyone has any objections, please let me know. + +------------------ + +From: Chuck Lever + +[ Upstream commit 14996e662f3b734427e2d645cacffc27b779f7d1 ] + +rpc_mkpipe_dentry() instantiates the pipe's dentry before it returns, +so the cld pipe can be opened as soon as nfsd4_cld_register_net() has +run. __nfsd4_init_cld_pipe() does not store the new cld_net in +nn->cld_net until after that call. cld_pipe_downcall() reaches the +cld_net only through that pointer and takes cn_lock without checking +it, so a write() that lands in the window oopses. + +Store nn->cld_net once @cn is fully initialized and before the pipe is +registered, and clear it again when registration fails. + +Fixes: f3f8014862d8 ("nfsd: add the infrastructure to handle the cld upcall") +Cc: stable@vger.kernel.org +Link: https://patch.msgid.link/20260901-alemi-v2-6-e163f94a3a6e@kernel.org +Signed-off-by: Chuck Lever +[ sashal: Omitted the CONFIG_NFSD_LEGACY_CLIENT_TRACKING guard around cn_has_legacy initialization. ] +Signed-off-by: Sasha Levin +--- + fs/nfsd/nfs4recover.c | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c +index 2eebde725f71e..d91b912fb7d0b 100644 +--- a/fs/nfsd/nfs4recover.c ++++ b/fs/nfsd/nfs4recover.c +@@ -1020,6 +1020,13 @@ __nfsd4_init_cld_pipe(struct net *net) + } + spin_lock_init(&cn->cn_lock); + INIT_LIST_HEAD(&cn->cn_list); ++ cn->cn_has_legacy = false; ++ ++ /* ++ * The pipe's methods reach @cn through nn->cld_net, so set ++ * it before the pipe can be opened. ++ */ ++ nn->cld_net = cn; + + dentry = nfsd4_cld_register_net(net, cn->cn_pipe); + if (IS_ERR(dentry)) { +@@ -1028,11 +1035,10 @@ __nfsd4_init_cld_pipe(struct net *net) + } + + cn->cn_pipe->dentry = dentry; +- cn->cn_has_legacy = false; +- nn->cld_net = cn; + return 0; + + err_destroy_data: ++ nn->cld_net = NULL; + rpc_destroy_pipe_data(cn->cn_pipe); + err: + kfree(cn); +-- +2.53.0 + + + + diff --git a/cve/CVE-2026-99360/6.1/base b/cve/CVE-2026-99360/6.1/base new file mode 100644 index 00000000..5c0fc3d6 --- /dev/null +++ b/cve/CVE-2026-99360/6.1/base @@ -0,0 +1 @@ +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2026-99360/6.1/fasttrack.json b/cve/CVE-2026-99360/6.1/fasttrack.json new file mode 100644 index 00000000..65bc8f56 --- /dev/null +++ b/cve/CVE-2026-99360/6.1/fasttrack.json @@ -0,0 +1,32 @@ +{ + "series": "6.1", + "base": { + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" + }, + "incident": "CVE-2026-99360", + "outcome": "patched", + "fixed_in": null, + "made": null, + "patches": [ + { + "series": "6.1", + "upstream": "14996e662f3b734427e2d645cacffc27b779f7d1", + "subject": "NFSD: Set nn->cld_net before registering the cld pipe", + "source": "stable-list", + "cves": [ + "CVE-2026-99360" + ], + "kev": false, + "verdict": "accepted", + "reason": "backport posted to stable@vger.kernel.org", + "filename": "0001-14996e662f3b-nfsd-set-nn-cld-net-before-registering-the-cld-pipe.patch", + "files": [], + "prerequisites": [], + "build_log": "", + "backport": "", + "bug_commits": [], + "unaffected": false + } + ] +} diff --git a/cve/CVE-2026-99360/6.1/series.conf b/cve/CVE-2026-99360/6.1/series.conf new file mode 100644 index 00000000..6b834eb6 --- /dev/null +++ b/cve/CVE-2026-99360/6.1/series.conf @@ -0,0 +1,5 @@ +# Generated by ksec-fasttrack. Do not edit by hand: the next run rewrites it. +# Security fixes not yet in a 6.1 stable release, verified to apply as a series, +# with no fuzz, on top of 1ca1436ccc68 (6.1.193). + +0001-14996e662f3b-nfsd-set-nn-cld-net-before-registering-the-cld-pipe.patch diff --git a/cve/CVE-2026-99482/6.1/0001-c53791d673ed-asoc-amd-ps-fix-snd-acp63-remove-teardown-ordering.patch b/cve/CVE-2026-99482/6.1/0001-c53791d673ed-asoc-amd-ps-fix-snd-acp63-remove-teardown-ordering.patch new file mode 100644 index 00000000..b551256b --- /dev/null +++ b/cve/CVE-2026-99482/6.1/0001-c53791d673ed-asoc-amd-ps-fix-snd-acp63-remove-teardown-ordering.patch @@ -0,0 +1,62 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +X-Fasttrack-Source: claude +X-Fasttrack-Upstream: c53791d673ed4da6759d276078627ec4d0c6536b +X-Fasttrack-CVE: CVE-2026-99482 +From: Fan Wu +Date: Tue, 29 Sep 2026 06:13:49 +0000 +Subject: [PATCH] ASoC: amd: ps: fix snd_acp63_remove() teardown ordering + +commit c53791d673ed4da6759d276078627ec4d0c6536b upstream. + +[ Backport: call the existing static acp63_disable_interrupts() directly; 6.1 has no acp_hw_ops. ] +[ Backport: drop the acp63.h and ps-common.c hunks; 6.1 has no hw_ops and no acp70. ] +[ Backport: call devm_free_irq() ACP6x_DEVS times in PDM mode only; 6.1 probe requests the IRQ once per child device, and only in PDM mode. ] + +The ACP IRQ handlers dereference the SoundWire, SoundWire DMA, and PDM +child platform devices, but snd_acp63_remove() unregisters them while +the interrupt is still held by devres, which frees it only after remove +returns. An interrupt in this window is a use-after-free. + +Mask the ACP interrupt sources and call devm_free_irq() before the +first child device is unregistered. The masking goes through the new +acp_hw_ops->disable_interrupts callback, keeping the remove path +platform-agnostic. The interrupt line is shared, and acp_hw_deinit() +clears the sources only after the children are gone, which would +leave the line raised with no handler left to ack it. The window +predates the tagged refactor, which only reshaped the dereferences. + +devm_free_irq() waits for in-flight handlers, but not for work the +hardirq has already queued: acp63_irq_handler() schedules +amd_sdw_irq_thread on the SoundWire manager. Draining that work in +the manager's remove path is a soundwire-side change and follows +separately. + +This issue was found by an in-house static analysis tool. + +Fixes: eaf825037d6d ("ASoC: amd: ps: refactor acp child platform device creation code") +Cc: stable@vger.kernel.org +Co-developed-by: Song Li +Signed-off-by: Song Li +Signed-off-by: Fan Wu +Reviewed-by: Vijendar Mukunda +Link: https://patch.msgid.link/20260929061349.3879-1-fanwu01@zju.edu.cn +Signed-off-by: Mark Brown +--- + sound/soc/amd/ps/pci-ps.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/sound/soc/amd/ps/pci-ps.c b/sound/soc/amd/ps/pci-ps.c +index c3bce6ed090d79..bf016f3e7416fa 100644 +--- a/sound/soc/amd/ps/pci-ps.c ++++ b/sound/soc/amd/ps/pci-ps.c +@@ -310,7 +310,10 @@ static void snd_acp63_remove(struct pci_dev *pci) + int ret, index; + + adata = pci_get_drvdata(pci); ++ acp63_disable_interrupts(adata->acp63_base); + if (adata->acp63_audio_mode == ACP6x_PDM_MODE) { ++ for (index = 0; index < ACP6x_DEVS; index++) ++ devm_free_irq(&pci->dev, pci->irq, adata); + for (index = 0; index < ACP6x_DEVS; index++) + platform_device_unregister(adata->pdev[index]); + } diff --git a/cve/CVE-2026-99482/6.1/base b/cve/CVE-2026-99482/6.1/base new file mode 100644 index 00000000..5c0fc3d6 --- /dev/null +++ b/cve/CVE-2026-99482/6.1/base @@ -0,0 +1 @@ +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2026-99482/6.1/fasttrack.json b/cve/CVE-2026-99482/6.1/fasttrack.json new file mode 100644 index 00000000..322a4f6f --- /dev/null +++ b/cve/CVE-2026-99482/6.1/fasttrack.json @@ -0,0 +1,32 @@ +{ + "series": "6.1", + "base": { + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" + }, + "incident": "CVE-2026-99482", + "outcome": "patched-needs-review", + "fixed_in": null, + "made": "2026-11-29T09:59:09Z", + "patches": [ + { + "series": "6.1", + "upstream": "c53791d673ed4da6759d276078627ec4d0c6536b", + "subject": "ASoC: amd: ps: fix snd_acp63_remove() teardown ordering", + "source": "claude", + "cves": [ + "CVE-2026-99482" + ], + "kev": false, + "verdict": "claude-backport", + "reason": "backport made in work package; review before use", + "filename": "0001-c53791d673ed-asoc-amd-ps-fix-snd-acp63-remove-teardown-ordering.patch", + "files": [], + "prerequisites": [], + "build_log": "", + "backport": "", + "bug_commits": [], + "unaffected": false + } + ] +} diff --git a/cve/CVE-2026-99482/6.1/series.conf b/cve/CVE-2026-99482/6.1/series.conf new file mode 100644 index 00000000..8ccafee9 --- /dev/null +++ b/cve/CVE-2026-99482/6.1/series.conf @@ -0,0 +1,5 @@ +# Generated by ksec-fasttrack. Do not edit by hand: the next run rewrites it. +# Security fixes not yet in a 6.1 stable release, verified to apply as a series, +# with no fuzz, on top of 1ca1436ccc68 (6.1.193). + +0001-c53791d673ed-asoc-amd-ps-fix-snd-acp63-remove-teardown-ordering.patch diff --git a/cve/CVE-2026-99522/6.1/0001-8a8088b899e4-rdma-irdma-avoid-use-after-free-in-icrdma-remove.patch b/cve/CVE-2026-99522/6.1/0001-8a8088b899e4-rdma-irdma-avoid-use-after-free-in-icrdma-remove.patch new file mode 100644 index 00000000..8b252e13 --- /dev/null +++ b/cve/CVE-2026-99522/6.1/0001-8a8088b899e4-rdma-irdma-avoid-use-after-free-in-icrdma-remove.patch @@ -0,0 +1,68 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +X-Fasttrack-Source: claude +X-Fasttrack-Upstream: 8a8088b899e4cdfe558428cd6113d45df81625be +X-Fasttrack-CVE: CVE-2026-99522 +From: Guangshuo Li +Date: Mon, 14 Sep 2026 20:28:40 +0800 +Subject: [PATCH] RDMA/irdma: avoid use-after-free in icrdma_remove + +commit 8a8088b899e4cdfe558428cd6113d45df81625be upstream. + +[ Backport: 6.1 has irdma_remove() in main.c, before the icrdma_if.c split (0c2b80cac96e) ] +[ Backport: 6.1 reads iwdev->vsi_num after irdma_ib_unregister_device(); save vsi_num before, not rf ] +[ Backport: 6.1 frees rf in irdma_ib_dealloc_device() and does not use rf in remove; no rf change needed ] + +icrdma_remove() dereferences iwdev after calling +irdma_ib_unregister_device(): + + irdma_ib_unregister_device(iwdev) + -> ib_unregister_device(&iwdev->ibdev) + -> __ib_unregister_device() + -> ib_dealloc_device() + +irdma registers irdma_ib_dealloc_device() as the dealloc_driver +callback in its ib_device_ops. The RDMA core explicitly documents +ib_unregister_device() that when ops.dealloc_driver is used, ib_dev +will be freed upon return from the function. + +The ib_device is embedded in struct irdma_device and iwdev itself was +allocated by ib_alloc_device(irdma_device, ibdev). Consequently, once +irdma_ib_unregister_device() returns, iwdev must no longer be +dereferenced. + +However, icrdma_remove() currently accesses iwdev->rf afterwards when +deinitializing interrupts, destroying ah_tbl_lock, and freeing rf. +Although the final ib_device storage is released with kfree_rcu(), the +object lifetime has already ended and callers must not rely on the RCU +grace period to continue dereferencing iwdev. + +Save iwdev->rf before unregistering the RDMA device and use the saved +pointer for the remaining cleanup. + +This issue was found by manual code inspection. + +Fixes: 8498a30e1b94 ("RDMA/irdma: Register auxiliary driver and implement private channel OPs") +Cc: stable@vger.kernel.org +Signed-off-by: Guangshuo Li +Link: https://patch.msgid.link/20260914122840.1709743-1-lgs201920130244@gmail.com +Signed-off-by: Leon Romanovsky +--- + drivers/infiniband/hw/irdma/main.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/drivers/infiniband/hw/irdma/main.c b/drivers/infiniband/hw/irdma/main.c +index be1030d1adfaf7..91b3ef912063d6 100644 +--- a/drivers/infiniband/hw/irdma/main.c ++++ b/drivers/infiniband/hw/irdma/main.c +@@ -213,9 +213,10 @@ static void irdma_remove(struct auxiliary_device *aux_dev) + adev); + struct ice_pf *pf = iidc_adev->pf; + struct irdma_device *iwdev = auxiliary_get_drvdata(aux_dev); ++ u16 vsi_num = iwdev->vsi_num; + + irdma_ib_unregister_device(iwdev); +- ice_rdma_update_vsi_filter(pf, iwdev->vsi_num, false); ++ ice_rdma_update_vsi_filter(pf, vsi_num, false); + + pr_debug("INIT: Gen2 PF[%d] device remove success\n", PCI_FUNC(pf->pdev->devfn)); + } diff --git a/cve/CVE-2026-99522/6.1/base b/cve/CVE-2026-99522/6.1/base new file mode 100644 index 00000000..5c0fc3d6 --- /dev/null +++ b/cve/CVE-2026-99522/6.1/base @@ -0,0 +1 @@ +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2026-99522/6.1/fasttrack.json b/cve/CVE-2026-99522/6.1/fasttrack.json new file mode 100644 index 00000000..9802c1b7 --- /dev/null +++ b/cve/CVE-2026-99522/6.1/fasttrack.json @@ -0,0 +1,32 @@ +{ + "series": "6.1", + "base": { + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" + }, + "incident": "CVE-2026-99522", + "outcome": "patched-needs-review", + "fixed_in": null, + "made": "2026-11-29T10:01:35Z", + "patches": [ + { + "series": "6.1", + "upstream": "8a8088b899e4cdfe558428cd6113d45df81625be", + "subject": "RDMA/irdma: avoid use-after-free in icrdma_remove", + "source": "claude", + "cves": [ + "CVE-2026-99522" + ], + "kev": false, + "verdict": "claude-backport", + "reason": "backport made in work package; review before use", + "filename": "0001-8a8088b899e4-rdma-irdma-avoid-use-after-free-in-icrdma-remove.patch", + "files": [], + "prerequisites": [], + "build_log": "", + "backport": "", + "bug_commits": [], + "unaffected": false + } + ] +} diff --git a/cve/CVE-2026-99522/6.1/series.conf b/cve/CVE-2026-99522/6.1/series.conf new file mode 100644 index 00000000..1db28bbb --- /dev/null +++ b/cve/CVE-2026-99522/6.1/series.conf @@ -0,0 +1,5 @@ +# Generated by ksec-fasttrack. Do not edit by hand: the next run rewrites it. +# Security fixes not yet in a 6.1 stable release, verified to apply as a series, +# with no fuzz, on top of 1ca1436ccc68 (6.1.193). + +0001-8a8088b899e4-rdma-irdma-avoid-use-after-free-in-icrdma-remove.patch diff --git a/cve/CVE-2026-99571/6.1/0001-2eeeaa9c1ff0-nvme-tcp-validate-the-queue-state-under-the-queue-lo.patch b/cve/CVE-2026-99571/6.1/0001-2eeeaa9c1ff0-nvme-tcp-validate-the-queue-state-under-the-queue-lo.patch new file mode 100644 index 00000000..99ce9294 --- /dev/null +++ b/cve/CVE-2026-99571/6.1/0001-2eeeaa9c1ff0-nvme-tcp-validate-the-queue-state-under-the-queue-lo.patch @@ -0,0 +1,185 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +X-Fasttrack-Source: claude +X-Fasttrack-Upstream: 2eeeaa9c1ff0c429096acc2947c296db6a56f96d +X-Fasttrack-CVE: CVE-2026-99571 +From: Guixin Liu +Date: Wed, 28 Oct 2026 10:09:04 +0800 +Subject: [PATCH] nvme-tcp: Validate the queue state under the queue lock in + the address attribute + +commit 2eeeaa9c1ff0c429096acc2947c296db6a56f96d upstream. + +[ Backport: 6.1 uses sock_release() and does not clear queue->sock; lock both and add queue->sock = NULL, as the fix needs ] +[ Backport: 6.1 has no pf_cache_lock/hdr_digest loop in nvme_tcp_alloc_ctrl(); add a loop for mutex_init() after kcalloc() ] +[ Backport: 6.1 uses list_empty() in nvme_tcp_free_ctrl(); context only ] + +Reading the "address" sysfs attribute calls kernel_getsockname() on the +admin queue socket, which can race with the queue teardown during +connection error recovery: a reader can observe NVME_TCP_Q_LIVE set, +then block on the queue lock while nvme_tcp_free_queue() releases the +socket and clears queue->sock without holding the lock. Once the +reader acquires the lock it dereferences the NULL socket pointer. + +Commit 76d54bf20cdc ("nvme-tcp: don't access released socket during +error recovery") had the queue liveness check inside the lock. +Commit 782373ba2766 ("nvme: tcp: avoid race between queue_lock lock +and destroy") moved it back out because the lock itself is destroyed +in nvme_tcp_free_queue(), so a reader arriving late trips +mutex_destroy(). + +Check the queue liveness inside the queue lock, and clear queue->sock +under the same lock. The teardown clears NVME_TCP_Q_LIVE under the +lock well before the socket is released, so a reader either sees the +bit cleared or a socket that cannot be released while it holds the +lock. To also close the lock lifetime race, the queue locks are now +owned by the controller: they are initialized with the queue array and +only destroyed when the controller is freed, which cannot happen while +a sysfs attribute read is still in progress. The queue count is +computed by the NVME_TCP_OPT_NR_QUEUES() macro from the original +connect options for both initialization and destruction, as reconnects +may shrink ctrl->queue_count. + +Fixes: 782373ba2766 ("nvme: tcp: avoid race between queue_lock lock and destroy") +Cc: stable@vger.kernel.org +Signed-off-by: Guixin Liu +Reviewed-by: Nilay Shroff +Signed-off-by: Keith Busch +--- + drivers/nvme/host/tcp.c | 53 +++++++++++++++++++++++++++++------------ + 1 file changed, 38 insertions(+), 15 deletions(-) + +diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c +index d9bd7b757d3a07..39de656303f1cb 100644 +--- a/drivers/nvme/host/tcp.c ++++ b/drivers/nvme/host/tcp.c +@@ -106,6 +106,9 @@ enum nvme_tcp_queue_flags { + NVME_TCP_Q_POLLING = 2, + }; + ++#define NVME_TCP_OPT_NR_QUEUES(opts) ((opts)->nr_io_queues + \ ++ (opts)->nr_write_queues + (opts)->nr_poll_queues + 1) ++ + enum nvme_tcp_recv_state { + NVME_TCP_RECV_PDU = 0, + NVME_TCP_RECV_DATA, +@@ -1444,13 +1447,22 @@ static void nvme_tcp_free_queue(struct nvme_ctrl *nctrl, int qid) + queue->pf_cache.va = NULL; + } + ++ /* ++ * Clear queue->sock under the queue lock so that a sysfs reader in ++ * nvme_tcp_get_address() either observes the NVME_TCP_Q_LIVE bit ++ * cleared or a still valid socket. The queue lock itself is owned ++ * by the controller and only destroyed when the controller is ++ * freed, so readers blocked on it cannot race its teardown. ++ */ + noreclaim_flag = memalloc_noreclaim_save(); ++ mutex_lock(&queue->queue_lock); + sock_release(queue->sock); ++ queue->sock = NULL; ++ mutex_unlock(&queue->queue_lock); + memalloc_noreclaim_restore(noreclaim_flag); + + kfree(queue->pdu); + mutex_destroy(&queue->send_mutex); +- mutex_destroy(&queue->queue_lock); + } + + static int nvme_tcp_init_connection(struct nvme_tcp_queue *queue) +@@ -1620,7 +1632,6 @@ static int nvme_tcp_alloc_queue(struct nvme_ctrl *nctrl, int qid) + struct nvme_tcp_queue *queue = &ctrl->queues[qid]; + int ret, rcv_pdu_size; + +- mutex_init(&queue->queue_lock); + queue->ctrl = ctrl; + init_llist_head(&queue->req_list); + INIT_LIST_HEAD(&queue->send_list); +@@ -1752,7 +1763,6 @@ static int nvme_tcp_alloc_queue(struct nvme_ctrl *nctrl, int qid) + queue->sock = NULL; + err_destroy_mutex: + mutex_destroy(&queue->send_mutex); +- mutex_destroy(&queue->queue_lock); + return ret; + } + +@@ -2317,6 +2327,9 @@ static void nvme_tcp_stop_ctrl(struct nvme_ctrl *ctrl) + static void nvme_tcp_free_ctrl(struct nvme_ctrl *nctrl) + { + struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); ++ /* the same count used to size and initialize the queue array */ ++ unsigned int nr_queues = NVME_TCP_OPT_NR_QUEUES(nctrl->opts); ++ unsigned int i; + + if (list_empty(&ctrl->list)) + goto free_ctrl; +@@ -2328,6 +2341,8 @@ static void nvme_tcp_free_ctrl(struct nvme_ctrl *nctrl) + nvmf_free_options(nctrl->opts); + free_ctrl: + put_net(ctrl->net); ++ for (i = 0; i < nr_queues; i++) ++ mutex_destroy(&ctrl->queues[i].queue_lock); + kfree(ctrl->queues); + kfree(ctrl); + } +@@ -2577,17 +2592,18 @@ static int nvme_tcp_get_address(struct nvme_ctrl *ctrl, char *buf, int size) + + len = nvmf_get_address(ctrl, buf, size); + +- if (!test_bit(NVME_TCP_Q_LIVE, &queue->flags)) +- return len; +- + mutex_lock(&queue->queue_lock); + +- ret = kernel_getsockname(queue->sock, (struct sockaddr *)&src_addr); +- if (ret > 0) { +- if (len > 0) +- len--; /* strip trailing newline */ +- len += scnprintf(buf + len, size - len, "%ssrc_addr=%pISc\n", +- (len) ? "," : "", &src_addr); ++ if (test_bit(NVME_TCP_Q_LIVE, &queue->flags)) { ++ ret = kernel_getsockname(queue->sock, ++ (struct sockaddr *)&src_addr); ++ if (ret > 0) { ++ if (len > 0) ++ len--; /* strip trailing newline */ ++ len += scnprintf(buf + len, size - len, ++ "%ssrc_addr=%pISc\n", ++ (len) ? "," : "", &src_addr); ++ } + } + + mutex_unlock(&queue->queue_lock); +@@ -2652,7 +2668,7 @@ static struct nvme_tcp_ctrl *nvme_tcp_alloc_ctrl(struct device *dev, + struct nvmf_ctrl_options *opts) + { + struct nvme_tcp_ctrl *ctrl; +- int ret; ++ int ret, i; + + ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL); + if (!ctrl) +@@ -2660,8 +2676,7 @@ static struct nvme_tcp_ctrl *nvme_tcp_alloc_ctrl(struct device *dev, + + INIT_LIST_HEAD(&ctrl->list); + ctrl->ctrl.opts = opts; +- ctrl->ctrl.queue_count = opts->nr_io_queues + opts->nr_write_queues + +- opts->nr_poll_queues + 1; ++ ctrl->ctrl.queue_count = NVME_TCP_OPT_NR_QUEUES(opts); + ctrl->ctrl.sqsize = opts->queue_size - 1; + ctrl->ctrl.kato = opts->kato; + +@@ -2720,6 +2735,14 @@ static struct nvme_tcp_ctrl *nvme_tcp_alloc_ctrl(struct device *dev, + goto out_free_ctrl; + } + ++ /* ++ * The queue locks are owned by the controller, not the queues: ++ * they outlive the per-queue connect/disconnect cycles so that ++ * sysfs readers can never race their destruction. ++ */ ++ for (i = 0; i < ctrl->ctrl.queue_count; i++) ++ mutex_init(&ctrl->queues[i].queue_lock); ++ + ctrl->net = get_net(current->nsproxy->net_ns); + + ret = nvme_init_ctrl(&ctrl->ctrl, dev, &nvme_tcp_ctrl_ops, 0); diff --git a/cve/CVE-2026-99571/6.1/base b/cve/CVE-2026-99571/6.1/base new file mode 100644 index 00000000..5c0fc3d6 --- /dev/null +++ b/cve/CVE-2026-99571/6.1/base @@ -0,0 +1 @@ +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2026-99571/6.1/fasttrack.json b/cve/CVE-2026-99571/6.1/fasttrack.json new file mode 100644 index 00000000..1bab5d7e --- /dev/null +++ b/cve/CVE-2026-99571/6.1/fasttrack.json @@ -0,0 +1,32 @@ +{ + "series": "6.1", + "base": { + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" + }, + "incident": "CVE-2026-99571", + "outcome": "patched-needs-review", + "fixed_in": null, + "made": "2026-11-29T10:00:32Z", + "patches": [ + { + "series": "6.1", + "upstream": "2eeeaa9c1ff0c429096acc2947c296db6a56f96d", + "subject": "nvme-tcp: Validate the queue state under the queue lock in the address attribute", + "source": "claude", + "cves": [ + "CVE-2026-99571" + ], + "kev": false, + "verdict": "claude-backport", + "reason": "backport made in work package; review before use", + "filename": "0001-2eeeaa9c1ff0-nvme-tcp-validate-the-queue-state-under-the-queue-lo.patch", + "files": [], + "prerequisites": [], + "build_log": "", + "backport": "", + "bug_commits": [], + "unaffected": false + } + ] +} diff --git a/cve/CVE-2026-99571/6.1/series.conf b/cve/CVE-2026-99571/6.1/series.conf new file mode 100644 index 00000000..5ab17b91 --- /dev/null +++ b/cve/CVE-2026-99571/6.1/series.conf @@ -0,0 +1,5 @@ +# Generated by ksec-fasttrack. Do not edit by hand: the next run rewrites it. +# Security fixes not yet in a 6.1 stable release, verified to apply as a series, +# with no fuzz, on top of 1ca1436ccc68 (6.1.193). + +0001-2eeeaa9c1ff0-nvme-tcp-validate-the-queue-state-under-the-queue-lo.patch diff --git a/cve/CVE-2026-99643/6.1/0001-eadce52a9ef6-khugepaged-fix-readahead-lock-inversion-in-collapse.patch b/cve/CVE-2026-99643/6.1/0001-eadce52a9ef6-khugepaged-fix-readahead-lock-inversion-in-collapse.patch new file mode 100644 index 00000000..e0d92f2f --- /dev/null +++ b/cve/CVE-2026-99643/6.1/0001-eadce52a9ef6-khugepaged-fix-readahead-lock-inversion-in-collapse.patch @@ -0,0 +1,125 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +X-Fasttrack-Source: claude +X-Fasttrack-Upstream: eadce52a9ef657d561b3e76c9b5f178bd99735f5 +X-Fasttrack-CVE: CVE-2026-99643 +From: Lance Yang +Date: Mon, 26 Oct 2026 23:20:13 +0800 +Subject: [PATCH] khugepaged: fix readahead lock inversion in collapse_file() + +commit eadce52a9ef657d561b3e76c9b5f178bd99735f5 upstream. + +[ Backport: put retry before xas_create_range(), 6.1 locks hpage after it ] +[ Backport: declare a local folio in the readahead block, 6.1 scopes folio to the scan loop ] +[ Backport: check filemap_lock_folio() for NULL, 6.1 does not return ERR_PTR ] +[ Backport: jump to out on readahead failure, 6.1 has no out_put and releases hpage at out ] + +collapse_file() can call page_cache_sync_readahead() while still holding +source folios locked. If truncate holds mapping->invalidate_lock +exclusively and waits for one of those folios, readahead waits for +invalidate_lock and neither side can make progress. + +We need to release those folio locks before starting readahead. On a page +cache miss, roll back first, populate the collapse range, and retry once. +Doing readahead after rollback avoids an extra pass when all folios are +already present. If another miss occurs on retry, give up rather than keep +retrying while truncate or reclaim removes folios. + +Keep page_cache_sync_readahead() and wait for read I/O with +filemap_lock_folio(), releasing each folio before moving to the next. The +existing uptodate check during collapse still handles read errors. + +Shmem uses shmem_get_folio() for swapin and fallocated folios without +taking mapping->invalidate_lock, so it is unaffected. + +Reported-by: syzbot+16bf7cd0ebeb1de93aa5@syzkaller.appspotmail.com +Closes: https://syzkaller.appspot.com/bug?extid=16bf7cd0ebeb1de93aa5 +Fixes: 730633f0b7f9 ("mm: Protect operations adding pages to page cache with invalidate_lock") +Cc: stable@vger.kernel.org +Signed-off-by: Lance Yang +Reviewed-by: Pedro Falcato +Acked-by: David Hildenbrand (Arm) +Acked-by: Zi Yan +Reviewed-by: Baolin Wang +Link: https://patch.msgid.link/20261026152013.10511-1-lance.yang@linux.dev +Signed-off-by: David Hildenbrand (Arm) +--- + mm/khugepaged.c | 45 ++++++++++++++++++++++++++++++++++----------- + 1 file changed, 34 insertions(+), 11 deletions(-) + +diff --git a/mm/khugepaged.c b/mm/khugepaged.c +index eaeb89ead54d28..e65a36eac12386 100644 +--- a/mm/khugepaged.c ++++ b/mm/khugepaged.c +@@ -1785,6 +1785,8 @@ static int collapse_file(struct mm_struct *mm, unsigned long addr, + XA_STATE_ORDER(xas, &mapping->i_pages, start, HPAGE_PMD_ORDER); + int nr_none = 0, result = SCAN_SUCCEED; + int nr; ++ bool do_readahead = false; ++ bool readahead_done = false; + + VM_BUG_ON(!IS_ENABLED(CONFIG_READ_ONLY_THP_FOR_FS) && !is_shmem); + VM_BUG_ON(start & (HPAGE_PMD_NR - 1)); +@@ -1795,6 +1797,10 @@ static int collapse_file(struct mm_struct *mm, unsigned long addr, + + mapping_set_update(&xas, mapping); + ++retry: ++ result = SCAN_SUCCEED; ++ do_readahead = false; ++ xas_set_order(&xas, start, HPAGE_PMD_ORDER); + /* + * Ensure we have slots for all the pages in the range. This is + * almost certainly a no-op because most of the pages must be present +@@ -1879,17 +1885,9 @@ static int collapse_file(struct mm_struct *mm, unsigned long addr, + } + } else { /* !is_shmem */ + if (!page || xa_is_value(page)) { +- xas_unlock_irq(&xas); +- page_cache_sync_readahead(mapping, &file->f_ra, +- file, index, +- end - index); +- /* drain pagevecs to help isolate_lru_page() */ +- lru_add_drain(); +- page = find_lock_page(mapping, index); +- if (unlikely(page == NULL)) { +- result = SCAN_FAIL; +- goto xa_unlocked; +- } ++ do_readahead = !readahead_done; ++ result = SCAN_FAIL; ++ goto xa_locked; + } else if (PageDirty(page)) { + /* + * khugepaged only works on read-only fd, +@@ -2168,6 +2166,31 @@ static int collapse_file(struct mm_struct *mm, unsigned long addr, + + if (hpage) + unlock_page(hpage); ++ ++ /* Readahead may take invalidate_lock; source folios are unlocked. */ ++ if (do_readahead) { ++ struct folio *folio; ++ ++ for (index = start; index < end;) { ++ folio = filemap_lock_folio(mapping, index); ++ if (!folio) { ++ page_cache_sync_readahead(mapping, &file->f_ra, ++ file, index, end - index); ++ folio = filemap_lock_folio(mapping, index); ++ if (!folio) { ++ result = SCAN_FAIL; ++ goto out; ++ } ++ } ++ index = folio_next_index(folio); ++ folio_unlock(folio); ++ folio_put(folio); ++ } ++ /* Drain the local LRU batch before retrying isolation. */ ++ lru_add_drain(); ++ readahead_done = true; ++ goto retry; ++ } + out: + VM_BUG_ON(!list_empty(&pagelist)); + if (hpage) { diff --git a/cve/CVE-2026-99643/6.1/base b/cve/CVE-2026-99643/6.1/base new file mode 100644 index 00000000..5c0fc3d6 --- /dev/null +++ b/cve/CVE-2026-99643/6.1/base @@ -0,0 +1 @@ +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2026-99643/6.1/fasttrack.json b/cve/CVE-2026-99643/6.1/fasttrack.json new file mode 100644 index 00000000..21475d82 --- /dev/null +++ b/cve/CVE-2026-99643/6.1/fasttrack.json @@ -0,0 +1,32 @@ +{ + "series": "6.1", + "base": { + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" + }, + "incident": "CVE-2026-99643", + "outcome": "patched-needs-review", + "fixed_in": null, + "made": "2026-11-29T10:05:29Z", + "patches": [ + { + "series": "6.1", + "upstream": "eadce52a9ef657d561b3e76c9b5f178bd99735f5", + "subject": "khugepaged: fix readahead lock inversion in collapse_file()", + "source": "claude", + "cves": [ + "CVE-2026-99643" + ], + "kev": false, + "verdict": "claude-backport", + "reason": "backport made in work package; review before use", + "filename": "0001-eadce52a9ef6-khugepaged-fix-readahead-lock-inversion-in-collapse.patch", + "files": [], + "prerequisites": [], + "build_log": "", + "backport": "", + "bug_commits": [], + "unaffected": false + } + ] +} diff --git a/cve/CVE-2026-99643/6.1/series.conf b/cve/CVE-2026-99643/6.1/series.conf new file mode 100644 index 00000000..c44e2ea5 --- /dev/null +++ b/cve/CVE-2026-99643/6.1/series.conf @@ -0,0 +1,5 @@ +# Generated by ksec-fasttrack. Do not edit by hand: the next run rewrites it. +# Security fixes not yet in a 6.1 stable release, verified to apply as a series, +# with no fuzz, on top of 1ca1436ccc68 (6.1.193). + +0001-eadce52a9ef6-khugepaged-fix-readahead-lock-inversion-in-collapse.patch