diff --git a/cve/CVE-2024-47703/6.1/0001-5d99e198be27-bpf-lsm-add-check-for-bpf-lsm-return-value.patch b/cve/CVE-2024-47703/6.1/0001-5d99e198be27-bpf-lsm-add-check-for-bpf-lsm-return-value.patch index 886ce515..3b38a44b 100644 --- a/cve/CVE-2024-47703/6.1/0001-5d99e198be27-bpf-lsm-add-check-for-bpf-lsm-return-value.patch +++ b/cve/CVE-2024-47703/6.1/0001-5d99e198be27-bpf-lsm-add-check-for-bpf-lsm-return-value.patch @@ -12,6 +12,7 @@ commit 5d99e198be279045e6ecefe220f5c52f8ce9bfd5 upstream. [ Backport: 6.1 check_return_code() uses a tnum range. Add retval_range_within() as in upstream and use it for the LSM range only. Print smin/smax on failure, as upstream verbose_invalid_scalar() does. ] [ Backport: 6.1 has no reg_bounds_sanity_check(). __mark_reg_s32_range() returns 0. ] [ Backport: drop bpf_lsm_inode_xattr_skipcap from bool_lsm_hooks. 6.1 has no such hook. ] +[ Backport: lsm_verifier_ops now uses bpf_tracing_btf_ctx_access (stable c42da1d3ba9d backport). Adapt the context. ] A bpf prog returning a positive number attached to file_alloc_security hook makes kernel panic. @@ -42,7 +43,7 @@ Signed-off-by: Andrii Nakryiko 6 files changed, 119 insertions(+), 11 deletions(-) diff --git a/include/linux/bpf.h b/include/linux/bpf.h -index 0ce4f1eb92d1..0eee65c8952f 100644 +index 2fad4aca6207f9..036733395890d9 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -739,6 +739,7 @@ struct bpf_insn_access_aux { @@ -54,7 +55,7 @@ index 0ce4f1eb92d1..0eee65c8952f 100644 static inline void diff --git a/include/linux/bpf_lsm.h b/include/linux/bpf_lsm.h -index e775990d6613..2a343bfb657e 100644 +index e775990d66133e..2a343bfb657ecd 100644 --- a/include/linux/bpf_lsm.h +++ b/include/linux/bpf_lsm.h @@ -9,6 +9,7 @@ @@ -87,7 +88,7 @@ index e775990d6613..2a343bfb657e 100644 #endif /* _LINUX_BPF_LSM_H */ diff --git a/include/linux/bpf_verifier.h b/include/linux/bpf_verifier.h -index 33b073deb8c1..31472d1a1b1c 100644 +index e26c4b5382f65a..81f48fd5d99fce 100644 --- a/include/linux/bpf_verifier.h +++ b/include/linux/bpf_verifier.h @@ -228,6 +228,11 @@ struct bpf_reference_state { @@ -103,7 +104,7 @@ index 33b073deb8c1..31472d1a1b1c 100644 struct bpf_reg_state regs[MAX_BPF_REG]; /* index of call instruction that called into this func */ diff --git a/kernel/bpf/bpf_lsm.c b/kernel/bpf/bpf_lsm.c -index e7e195a2e5f9..53811281622d 100644 +index f26faa9a35db15..dacc3f059dcc6f 100644 --- a/kernel/bpf/bpf_lsm.c +++ b/kernel/bpf/bpf_lsm.c @@ -11,7 +11,6 @@ @@ -115,8 +116,8 @@ index e7e195a2e5f9..53811281622d 100644 #include #include @@ -384,3 +383,35 @@ const struct bpf_verifier_ops lsm_verifier_ops = { - .get_func_proto = bpf_lsm_func_proto, - .is_valid_access = btf_ctx_access, + .get_func_proto = bpf_lsm_func_proto, + .is_valid_access = bpf_tracing_btf_ctx_access, }; + +/* hooks return 0 or 1 */ @@ -151,10 +152,10 @@ index e7e195a2e5f9..53811281622d 100644 + return 0; +} diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c -index 850ea69e05fd..092db7f6d5ca 100644 +index c7ddd5f1f0dbc0..7da8e877376b4e 100644 --- a/kernel/bpf/btf.c +++ b/kernel/bpf/btf.c -@@ -5427,8 +5427,11 @@ bool btf_ctx_access(int off, int size, enum bpf_access_type type, +@@ -5444,8 +5444,11 @@ bool btf_ctx_access(int off, int size, enum bpf_access_type type, if (arg == nr_args) { switch (prog->expected_attach_type) { @@ -168,10 +169,10 @@ index 850ea69e05fd..092db7f6d5ca 100644 /* When LSM programs are attached to void LSM hooks * they use FEXIT trampolines and when attached to diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c -index b79581a941cd..1dc7aa00fe8c 100644 +index f457baaf15cfa3..90a14c98070c2a 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c -@@ -1666,6 +1666,25 @@ static void mark_reg_unknown(struct bpf_verifier_env *env, +@@ -1667,6 +1667,25 @@ static void mark_reg_unknown(struct bpf_verifier_env *env, __mark_reg_unknown(env, regs + regno); } @@ -197,7 +198,7 @@ index b79581a941cd..1dc7aa00fe8c 100644 static void __mark_reg_not_init(const struct bpf_verifier_env *env, struct bpf_reg_state *reg) { -@@ -4191,11 +4210,12 @@ static int check_packet_access(struct bpf_verifier_env *env, u32 regno, int off, +@@ -4219,11 +4238,12 @@ static int check_packet_access(struct bpf_verifier_env *env, u32 regno, int off, /* check access to 'struct bpf_context' fields. Supports fixed offsets only */ static int check_ctx_access(struct bpf_verifier_env *env, int insn_idx, int off, int size, enum bpf_access_type t, enum bpf_reg_type *reg_type, @@ -211,7 +212,7 @@ index b79581a941cd..1dc7aa00fe8c 100644 }; if (env->ops->is_valid_access && -@@ -4208,6 +4228,7 @@ static int check_ctx_access(struct bpf_verifier_env *env, int insn_idx, int off, +@@ -4236,6 +4256,7 @@ static int check_ctx_access(struct bpf_verifier_env *env, int insn_idx, int off, * type of narrower access. */ *reg_type = info.reg_type; @@ -219,7 +220,7 @@ index b79581a941cd..1dc7aa00fe8c 100644 if (base_type(*reg_type) == PTR_TO_BTF_ID) { *btf = info.btf; -@@ -4939,6 +4960,17 @@ static int check_stack_access_within_bounds( +@@ -4967,6 +4988,17 @@ static int check_stack_access_within_bounds( return grow_stack_state(env, state, round_up(-min_off, BPF_REG_SIZE)); } @@ -237,7 +238,7 @@ index b79581a941cd..1dc7aa00fe8c 100644 /* check whether memory at (regno + off) is accessible for t = (read | write) * if t==write, value_regno is a register which value is stored into memory * if t==read, value_regno is a register which will receive the value from memory -@@ -5044,6 +5076,8 @@ static int check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regn +@@ -5072,6 +5104,8 @@ static int check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regn if (!err && value_regno >= 0 && (t == BPF_READ || rdonly_mem)) mark_reg_unknown(env, regs, value_regno); } else if (reg->type == PTR_TO_CTX) { @@ -246,7 +247,7 @@ index b79581a941cd..1dc7aa00fe8c 100644 enum bpf_reg_type reg_type = SCALAR_VALUE; struct btf *btf = NULL; u32 btf_id = 0; -@@ -5059,7 +5093,7 @@ static int check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regn +@@ -5087,7 +5121,7 @@ static int check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regn return err; err = check_ctx_access(env, insn_idx, off, size, t, ®_type, &btf, @@ -255,7 +256,7 @@ index b79581a941cd..1dc7aa00fe8c 100644 if (err) verbose_linfo(env, insn_idx, "; "); if (!err && t == BPF_READ && value_regno >= 0) { -@@ -5068,7 +5102,14 @@ static int check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regn +@@ -5096,7 +5130,14 @@ static int check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regn * case, we know the offset is zero. */ if (reg_type == SCALAR_VALUE) { @@ -271,7 +272,7 @@ index b79581a941cd..1dc7aa00fe8c 100644 } else { mark_reg_known_zero(env, regs, value_regno); -@@ -10794,9 +10835,16 @@ static int check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn) +@@ -10858,9 +10899,16 @@ static int check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn) return 0; } @@ -288,7 +289,7 @@ index b79581a941cd..1dc7aa00fe8c 100644 const struct bpf_prog *prog = env->prog; struct bpf_reg_state *reg; struct tnum range = tnum_range(0, 1), const_0 = tnum_const(0); -@@ -10914,12 +10962,14 @@ static int check_return_code(struct bpf_verifier_env *env) +@@ -10978,12 +11026,14 @@ static int check_return_code(struct bpf_verifier_env *env) case BPF_PROG_TYPE_LSM: if (env->prog->expected_attach_type != BPF_LSM_CGROUP) { @@ -309,7 +310,7 @@ index b79581a941cd..1dc7aa00fe8c 100644 /* Make sure programs that attach to void * hooks don't try to modify return value. */ -@@ -10941,6 +10991,16 @@ static int check_return_code(struct bpf_verifier_env *env) +@@ -11005,6 +11055,16 @@ static int check_return_code(struct bpf_verifier_env *env) return -EINVAL; } diff --git a/cve/CVE-2024-47703/6.1/0002-763aa759d3b2-bpf-fix-compare-error-in-function-retval-range-withi.patch b/cve/CVE-2024-47703/6.1/0002-763aa759d3b2-bpf-fix-compare-error-in-function-retval-range-withi.patch index c65d144d..5e7956ac 100644 --- a/cve/CVE-2024-47703/6.1/0002-763aa759d3b2-bpf-fix-compare-error-in-function-retval-range-withi.patch +++ b/cve/CVE-2024-47703/6.1/0002-763aa759d3b2-bpf-fix-compare-error-in-function-retval-range-withi.patch @@ -45,10 +45,10 @@ Signed-off-by: Andrii Nakryiko 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c -index 1dc7aa00fe8c..f825dc4b99b4 100644 +index 90a14c98070c2a..d9dd1ff86a9953 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c -@@ -10835,9 +10835,13 @@ static int check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn) +@@ -10899,9 +10899,13 @@ static int check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn) return 0; } @@ -64,7 +64,7 @@ index 1dc7aa00fe8c..f825dc4b99b4 100644 } static int check_return_code(struct bpf_verifier_env *env) -@@ -10845,6 +10849,7 @@ static int check_return_code(struct bpf_verifier_env *env) +@@ -10909,6 +10913,7 @@ static int check_return_code(struct bpf_verifier_env *env) struct tnum enforce_attach_type_range = tnum_unknown; struct bpf_retval_range retval_range; bool use_retval_range = false; @@ -72,7 +72,7 @@ index 1dc7aa00fe8c..f825dc4b99b4 100644 const struct bpf_prog *prog = env->prog; struct bpf_reg_state *reg; struct tnum range = tnum_range(0, 1), const_0 = tnum_const(0); -@@ -10969,6 +10974,7 @@ static int check_return_code(struct bpf_verifier_env *env) +@@ -11033,6 +11038,7 @@ static int check_return_code(struct bpf_verifier_env *env) if (retval_range.minval == S32_MIN && retval_range.maxval == S32_MAX) return 0; use_retval_range = true; @@ -80,7 +80,7 @@ index 1dc7aa00fe8c..f825dc4b99b4 100644 } else if (!env->prog->aux->attach_func_proto->type) { /* Make sure programs that attach to void * hooks don't try to modify return value. -@@ -10992,7 +10998,7 @@ static int check_return_code(struct bpf_verifier_env *env) +@@ -11056,7 +11062,7 @@ static int check_return_code(struct bpf_verifier_env *env) } if (use_retval_range) { diff --git a/cve/CVE-2024-47703/6.1/0003-5e0b273e0a62-bpf-reset-register-bounds-before-narrowing-retval-ra.patch b/cve/CVE-2024-47703/6.1/0003-5e0b273e0a62-bpf-reset-register-bounds-before-narrowing-retval-ra.patch index df8dbd43..18f14a07 100644 --- a/cve/CVE-2024-47703/6.1/0003-5e0b273e0a62-bpf-reset-register-bounds-before-narrowing-retval-ra.patch +++ b/cve/CVE-2024-47703/6.1/0003-5e0b273e0a62-bpf-reset-register-bounds-before-narrowing-retval-ra.patch @@ -39,10 +39,10 @@ Signed-off-by: Alexei Starovoitov 1 file changed, 1 insertion(+) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c -index f825dc4b99b4..e396491dfe23 100644 +index d9dd1ff86a9953..3164307f95787f 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c -@@ -5103,6 +5103,7 @@ static int check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regn +@@ -5131,6 +5131,7 @@ static int check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regn */ if (reg_type == SCALAR_VALUE) { if (is_retval && get_func_retval_range(env->prog, &range)) { diff --git a/cve/CVE-2024-47703/6.1/base b/cve/CVE-2024-47703/6.1/base index 433951bd..5c0fc3d6 100644 --- a/cve/CVE-2024-47703/6.1/base +++ b/cve/CVE-2024-47703/6.1/base @@ -1 +1 @@ -08889840163ebcdb7e24bf7ec311bc2e6fc3aaea +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2024-47703/6.1/fasttrack.json b/cve/CVE-2024-47703/6.1/fasttrack.json index f3384bc0..0186ec67 100644 --- a/cve/CVE-2024-47703/6.1/fasttrack.json +++ b/cve/CVE-2024-47703/6.1/fasttrack.json @@ -1,13 +1,13 @@ { "series": "6.1", "base": { - "commit": "08889840163ebcdb7e24bf7ec311bc2e6fc3aaea", - "version": "6.1.191" + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" }, "incident": "CVE-2024-47703", "outcome": "patched-needs-review", "fixed_in": null, - "made": "2026-11-01T01:07:31Z", + "made": "2026-11-29T03:55:26Z", "patches": [ { "series": "6.1", @@ -24,7 +24,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", @@ -41,7 +43,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", @@ -58,7 +62,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false } ] } diff --git a/cve/CVE-2024-47703/6.1/series.conf b/cve/CVE-2024-47703/6.1/series.conf index f804cd1d..41c58ad8 100644 --- a/cve/CVE-2024-47703/6.1/series.conf +++ b/cve/CVE-2024-47703/6.1/series.conf @@ -1,6 +1,6 @@ # 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-5d99e198be27-bpf-lsm-add-check-for-bpf-lsm-return-value.patch 0002-763aa759d3b2-bpf-fix-compare-error-in-function-retval-range-withi.patch diff --git a/cve/CVE-2024-50211/6.1/0001-b405c1e58b73-udf-refactor-udf-next-aext-to-handle-error.patch b/cve/CVE-2024-50211/6.1/0001-b405c1e58b73-udf-refactor-udf-next-aext-to-handle-error.patch index 8ff51bef..008a9c8d 100644 --- a/cve/CVE-2024-50211/6.1/0001-b405c1e58b73-udf-refactor-udf-next-aext-to-handle-error.patch +++ b/cve/CVE-2024-50211/6.1/0001-b405c1e58b73-udf-refactor-udf-next-aext-to-handle-error.patch @@ -9,7 +9,9 @@ Subject: [PATCH] udf: refactor udf_next_aext() to handle error commit b405c1e58b73981da0f8df03b00666b22b9397ae upstream. [ Backport: inode_getblk() in 6.1 returns the block and reports errors in *err, not through udf_map_rq: set *err on each new error path. ] -[ Backport: udf_discard_prealloc(): drop the netype variable, which 6.1 still has (no 1fb40763a58c). ] +[ Backport: udf_discard_prealloc(): drop the netype variable, which 6.1 still has (no 1fb40763a58c). Keep the tmpeloc/tmpelen peek from 6.1.y 246ac240c758, as upstream does. ] +[ Backport: udf_table_prealloc_blocks(): test ret > 0, as upstream 94401199df90 does, in place of the 6.1.y "etype != -1" test (41fe9bee3e6b). ] +[ Backport: also convert udf_check_unalloc_table() in super.c, which the 6.1 patch set adds. Errors end the walk, as before. ] Since udf_current_aext() has error handling, udf_next_aext() should have error handling too. Besides, when too many indirect extents found in one @@ -19,18 +21,17 @@ Signed-off-by: Zhao Mengmeng Suggested-by: Jan Kara Signed-off-by: Jan Kara Link: https://patch.msgid.link/20241001115425.266556-3-zhaomzhao@126.com -Signed-off-by: Igor Pecovnik --- - fs/udf/balloc.c | 38 ++++++++----- + fs/udf/balloc.c | 40 +++++++++----- fs/udf/directory.c | 10 +++- fs/udf/inode.c | 134 ++++++++++++++++++++++++++++++--------------- - fs/udf/super.c | 3 +- - fs/udf/truncate.c | 29 ++++++++-- + fs/udf/super.c | 5 +- + fs/udf/truncate.c | 31 ++++++++--- fs/udf/udfdecl.h | 5 +- - 6 files changed, 152 insertions(+), 67 deletions(-) + 6 files changed, 155 insertions(+), 70 deletions(-) diff --git a/fs/udf/balloc.c b/fs/udf/balloc.c -index e8e3e291ef81..6d481f490c93 100644 +index 267365573bf7e6..d775868f615694 100644 --- a/fs/udf/balloc.c +++ b/fs/udf/balloc.c @@ -392,6 +392,7 @@ static void udf_table_free_blocks(struct super_block *sb, @@ -56,7 +57,7 @@ index e8e3e291ef81..6d481f490c93 100644 if (((eloc.logicalBlockNum + (elen >> sb->s_blocksize_bits)) == start)) { if ((0x3FFFFFFF - elen) < -@@ -481,11 +486,8 @@ static void udf_table_free_blocks(struct super_block *sb, +@@ -482,11 +487,8 @@ static void udf_table_free_blocks(struct super_block *sb, adsize = sizeof(struct short_ad); else if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_LONG) adsize = sizeof(struct long_ad); @@ -69,7 +70,7 @@ index e8e3e291ef81..6d481f490c93 100644 if (epos.offset + (2 * adsize) > sb->s_blocksize) { /* Steal a block from the extent being free'd */ -@@ -501,10 +503,10 @@ static void udf_table_free_blocks(struct super_block *sb, +@@ -502,10 +504,10 @@ static void udf_table_free_blocks(struct super_block *sb, __udf_add_aext(table, &epos, &eloc, elen, 1); } @@ -81,7 +82,7 @@ index e8e3e291ef81..6d481f490c93 100644 mutex_unlock(&sbi->s_alloc_mutex); return; } -@@ -520,6 +522,7 @@ static int udf_table_prealloc_blocks(struct super_block *sb, +@@ -521,6 +523,7 @@ static int udf_table_prealloc_blocks(struct super_block *sb, struct extent_position epos; int8_t etype = -1; struct udf_inode_info *iinfo; @@ -89,7 +90,7 @@ index e8e3e291ef81..6d481f490c93 100644 if (first_block >= sbi->s_partmaps[partition].s_partition_len) return 0; -@@ -538,11 +541,14 @@ static int udf_table_prealloc_blocks(struct super_block *sb, +@@ -539,14 +542,17 @@ static int udf_table_prealloc_blocks(struct super_block *sb, epos.bh = NULL; eloc.logicalBlockNum = 0xFFFFFFFF; @@ -106,8 +107,12 @@ index e8e3e291ef81..6d481f490c93 100644 - ; /* empty loop body */ } - if (first_block == eloc.logicalBlockNum) { -@@ -561,6 +567,7 @@ static int udf_table_prealloc_blocks(struct super_block *sb, +- if (etype != -1 && first_block == eloc.logicalBlockNum) { ++ if (ret > 0 && first_block == eloc.logicalBlockNum) { + epos.offset -= adsize; + + alloc_count = (elen >> sb->s_blocksize_bits); +@@ -562,6 +568,7 @@ static int udf_table_prealloc_blocks(struct super_block *sb, alloc_count = 0; } @@ -115,15 +120,15 @@ index e8e3e291ef81..6d481f490c93 100644 brelse(epos.bh); if (alloc_count) -@@ -582,6 +589,7 @@ static udf_pblk_t udf_table_new_block(struct super_block *sb, +@@ -583,6 +590,7 @@ static udf_pblk_t udf_table_new_block(struct super_block *sb, struct extent_position epos, goal_epos; - int8_t etype; + int8_t etype, goal_etype = 0; struct udf_inode_info *iinfo = UDF_I(table); + int ret = 0; *err = -ENOSPC; -@@ -605,8 +613,10 @@ static udf_pblk_t udf_table_new_block(struct super_block *sb, +@@ -606,8 +614,10 @@ static udf_pblk_t udf_table_new_block(struct super_block *sb, epos.block = iinfo->i_location; epos.bh = goal_epos.bh = NULL; @@ -136,7 +141,7 @@ index e8e3e291ef81..6d481f490c93 100644 if (goal >= eloc.logicalBlockNum) { if (goal < eloc.logicalBlockNum + (elen >> sb->s_blocksize_bits)) -@@ -634,9 +644,11 @@ static udf_pblk_t udf_table_new_block(struct super_block *sb, +@@ -636,9 +646,11 @@ static udf_pblk_t udf_table_new_block(struct super_block *sb, brelse(epos.bh); @@ -150,7 +155,7 @@ index e8e3e291ef81..6d481f490c93 100644 } diff --git a/fs/udf/directory.c b/fs/udf/directory.c -index 76dd2e35e098..e3f0f409b79d 100644 +index 76dd2e35e09817..e3f0f409b79df5 100644 --- a/fs/udf/directory.c +++ b/fs/udf/directory.c @@ -169,13 +169,19 @@ static struct buffer_head *udf_fiiter_bread_blk(struct udf_fileident_iter *iter) @@ -176,7 +181,7 @@ index 76dd2e35e098..e3f0f409b79d 100644 iter->elen = 0; return 0; diff --git a/fs/udf/inode.c b/fs/udf/inode.c -index 6cdbe82194ff..3d82f6914ba9 100644 +index 6b78df1f1625b6..d5d883f990ede2 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c @@ -421,6 +421,7 @@ static int udf_do_extend_file(struct inode *inode, @@ -347,7 +352,7 @@ index 6cdbe82194ff..3d82f6914ba9 100644 udf_write_aext(inode, epos, &laarr[i].extLocation, laarr[i].extLength, 1); } -@@ -2047,24 +2075,30 @@ void udf_write_aext(struct inode *inode, struct extent_position *epos, +@@ -2084,24 +2112,30 @@ void udf_write_aext(struct inode *inode, struct extent_position *epos, */ #define UDF_MAX_INDIR_EXTS 16 @@ -387,7 +392,7 @@ index 6cdbe82194ff..3d82f6914ba9 100644 } epos->block = *eloc; -@@ -2074,11 +2108,9 @@ int8_t udf_next_aext(struct inode *inode, struct extent_position *epos, +@@ -2111,11 +2145,9 @@ int8_t udf_next_aext(struct inode *inode, struct extent_position *epos, epos->bh = udf_tread(inode->i_sb, block); if (!epos->bh) { udf_debug("reading block %u failed!\n", block); @@ -400,7 +405,7 @@ index 6cdbe82194ff..3d82f6914ba9 100644 } /* -@@ -2150,20 +2182,24 @@ static int udf_insert_aext(struct inode *inode, struct extent_position epos, +@@ -2194,20 +2226,24 @@ static int udf_insert_aext(struct inode *inode, struct extent_position epos, struct kernel_lb_addr oeloc; uint32_t oelen; int8_t etype; @@ -429,7 +434,7 @@ index 6cdbe82194ff..3d82f6914ba9 100644 } int8_t udf_delete_aext(struct inode *inode, struct extent_position epos) -@@ -2175,6 +2211,7 @@ int8_t udf_delete_aext(struct inode *inode, struct extent_position epos) +@@ -2219,6 +2255,7 @@ int8_t udf_delete_aext(struct inode *inode, struct extent_position epos) struct udf_inode_info *iinfo; struct kernel_lb_addr eloc; uint32_t elen; @@ -437,7 +442,7 @@ index 6cdbe82194ff..3d82f6914ba9 100644 if (epos.bh) { get_bh(epos.bh); -@@ -2190,10 +2227,18 @@ int8_t udf_delete_aext(struct inode *inode, struct extent_position epos) +@@ -2234,10 +2271,18 @@ int8_t udf_delete_aext(struct inode *inode, struct extent_position epos) adsize = 0; oepos = epos; @@ -458,7 +463,7 @@ index 6cdbe82194ff..3d82f6914ba9 100644 udf_write_aext(inode, &oepos, &eloc, (etype << 30) | elen, 1); if (oepos.bh != epos.bh) { oepos.block = epos.block; -@@ -2258,6 +2303,7 @@ int8_t inode_bmap(struct inode *inode, sector_t block, +@@ -2302,6 +2347,7 @@ int8_t inode_bmap(struct inode *inode, sector_t block, loff_t lbcount = 0, bcount = (loff_t) block << blocksize_bits; int8_t etype; struct udf_inode_info *iinfo; @@ -466,7 +471,7 @@ index 6cdbe82194ff..3d82f6914ba9 100644 iinfo = UDF_I(inode); if (!udf_read_extent_cache(inode, bcount, &lbcount, pos)) { -@@ -2267,10 +2313,12 @@ int8_t inode_bmap(struct inode *inode, sector_t block, +@@ -2311,10 +2357,12 @@ int8_t inode_bmap(struct inode *inode, sector_t block, } *elen = 0; do { @@ -484,10 +489,19 @@ index 6cdbe82194ff..3d82f6914ba9 100644 } lbcount += *elen; diff --git a/fs/udf/super.c b/fs/udf/super.c -index 48ffcfd287ea..ccf672c6b125 100644 +index 4812682775b8aa..045a6669a2125f 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c -@@ -2524,13 +2524,14 @@ static unsigned int udf_count_free_table(struct super_block *sb, +@@ -1104,7 +1104,7 @@ static int udf_check_unalloc_table(struct super_block *sb, + return -EFSCORRUPTED; + } + +- while ((etype = udf_next_aext(table, &epos, &eloc, &elen, 1)) != -1) { ++ while (udf_next_aext(table, &epos, &eloc, &elen, &etype, 1) > 0) { + blocks = elen >> sb->s_blocksize_bits; + if (!blocks || (elen & (sb->s_blocksize - 1)) || + eloc.logicalBlockNum >= partition_len || +@@ -2613,13 +2613,14 @@ static unsigned int udf_count_free_table(struct super_block *sb, uint32_t elen; struct kernel_lb_addr eloc; struct extent_position epos; @@ -504,7 +518,7 @@ index 48ffcfd287ea..ccf672c6b125 100644 brelse(epos.bh); diff --git a/fs/udf/truncate.c b/fs/udf/truncate.c -index f0de6e106ce6..f8a8a22102a3 100644 +index b7fca0df9a4479..c332933927b573 100644 --- a/fs/udf/truncate.c +++ b/fs/udf/truncate.c @@ -73,6 +73,7 @@ void udf_truncate_tail_extent(struct inode *inode) @@ -548,8 +562,8 @@ index f0de6e106ce6..f8a8a22102a3 100644 } @@ -125,9 +131,11 @@ void udf_discard_prealloc(struct inode *inode) - struct kernel_lb_addr eloc; - uint32_t elen; + struct kernel_lb_addr eloc, tmpeloc; + uint32_t elen, tmpelen; uint64_t lbcount = 0; - int8_t etype = -1, netype; + int8_t etype = -1; @@ -560,13 +574,15 @@ index f0de6e106ce6..f8a8a22102a3 100644 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB || ALIGN(inode->i_size, bsize) == ALIGN(iinfo->i_lenExtents, bsize)) -@@ -136,15 +144,23 @@ void udf_discard_prealloc(struct inode *inode) +@@ -136,16 +144,24 @@ void udf_discard_prealloc(struct inode *inode) epos.block = iinfo->i_location; /* Find the last extent in the file */ -- while ((netype = udf_next_aext(inode, &epos, &eloc, &elen, 0)) != -1) { +- while ((netype = udf_next_aext(inode, &epos, &tmpeloc, &tmpelen, +- 0)) != -1) { + while (1) { -+ ret = udf_next_aext(inode, &epos, &eloc, &elen, &tmpetype, 0); ++ ret = udf_next_aext(inode, &epos, &tmpeloc, &tmpelen, ++ &tmpetype, 0); + if (ret < 0) + goto out; + if (ret == 0) @@ -586,7 +602,7 @@ index f0de6e106ce6..f8a8a22102a3 100644 if (etype == (EXT_NOT_RECORDED_ALLOCATED >> 30)) { lbcount -= elen; udf_delete_aext(inode, prev_epos); -@@ -154,6 +170,7 @@ void udf_discard_prealloc(struct inode *inode) +@@ -155,6 +171,7 @@ void udf_discard_prealloc(struct inode *inode) /* This inode entry is in-memory only and thus we don't have to mark * the inode dirty */ iinfo->i_lenExtents = lbcount; @@ -595,7 +611,7 @@ index f0de6e106ce6..f8a8a22102a3 100644 brelse(prev_epos.bh); } diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h -index 1d19434d4a47..5290c1fa159a 100644 +index 1d19434d4a47c6..5290c1fa159a34 100644 --- a/fs/udf/udfdecl.h +++ b/fs/udf/udfdecl.h @@ -172,8 +172,9 @@ extern int udf_add_aext(struct inode *, struct extent_position *, diff --git a/cve/CVE-2024-50211/6.1/0002-c226964ec786-udf-refactor-inode-bmap-to-handle-error.patch b/cve/CVE-2024-50211/6.1/0002-c226964ec786-udf-refactor-inode-bmap-to-handle-error.patch index 22aa1a17..e28ecee3 100644 --- a/cve/CVE-2024-50211/6.1/0002-c226964ec786-udf-refactor-inode-bmap-to-handle-error.patch +++ b/cve/CVE-2024-50211/6.1/0002-c226964ec786-udf-refactor-inode-bmap-to-handle-error.patch @@ -23,7 +23,6 @@ Signed-off-by: Zhao Mengmeng Suggested-by: Jan Kara Signed-off-by: Jan Kara Link: https://patch.msgid.link/20241001115425.266556-4-zhaomzhao@126.com -Signed-off-by: Igor Pecovnik --- fs/udf/directory.c | 13 ++++++++----- fs/udf/inode.c | 28 +++++++++++++++++----------- @@ -33,7 +32,7 @@ Signed-off-by: Igor Pecovnik 5 files changed, 36 insertions(+), 22 deletions(-) diff --git a/fs/udf/directory.c b/fs/udf/directory.c -index e3f0f409b79d..c79b8f997ea0 100644 +index e3f0f409b79df5..c79b8f997ea098 100644 --- a/fs/udf/directory.c +++ b/fs/udf/directory.c @@ -247,6 +247,7 @@ int udf_fiiter_init(struct udf_fileident_iter *iter, struct inode *dir, @@ -78,7 +77,7 @@ index e3f0f409b79d..c79b8f997ea0 100644 "block %llu not allocated in directory (ino %lu)\n", (unsigned long long)block, iter->dir->i_ino); diff --git a/fs/udf/inode.c b/fs/udf/inode.c -index 3d82f6914ba9..0789aa3cfc97 100644 +index d5d883f990ede2..fa5b993b27aacc 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c @@ -536,8 +536,10 @@ static int udf_extend_file(struct inode *inode, loff_t newsize) @@ -94,7 +93,7 @@ index 3d82f6914ba9..0789aa3cfc97 100644 /* We don't expect extents past EOF... */ WARN_ON_ONCE(within_last_ext && elen > ((loff_t)offset + 1) << inode->i_blkbits); -@@ -2295,13 +2297,15 @@ int8_t udf_delete_aext(struct inode *inode, struct extent_position epos) +@@ -2339,13 +2341,15 @@ int8_t udf_delete_aext(struct inode *inode, struct extent_position epos) return (elen >> 30); } @@ -114,7 +113,7 @@ index 3d82f6914ba9..0789aa3cfc97 100644 struct udf_inode_info *iinfo; int err = 0; -@@ -2313,13 +2317,13 @@ int8_t inode_bmap(struct inode *inode, sector_t block, +@@ -2357,13 +2361,13 @@ int8_t inode_bmap(struct inode *inode, sector_t block, } *elen = 0; do { @@ -130,7 +129,7 @@ index 3d82f6914ba9..0789aa3cfc97 100644 } lbcount += *elen; } while (lbcount <= bcount); -@@ -2327,7 +2331,7 @@ int8_t inode_bmap(struct inode *inode, sector_t block, +@@ -2371,7 +2375,7 @@ int8_t inode_bmap(struct inode *inode, sector_t block, udf_update_extent_cache(inode, lbcount - *elen, pos); *offset = (bcount + *elen - lbcount) >> blocksize_bits; @@ -139,7 +138,7 @@ index 3d82f6914ba9..0789aa3cfc97 100644 } udf_pblk_t udf_block_map(struct inode *inode, sector_t block) -@@ -2336,12 +2340,14 @@ udf_pblk_t udf_block_map(struct inode *inode, sector_t block) +@@ -2380,12 +2384,14 @@ udf_pblk_t udf_block_map(struct inode *inode, sector_t block) uint32_t elen; sector_t offset; struct extent_position epos = {}; @@ -157,7 +156,7 @@ index 3d82f6914ba9..0789aa3cfc97 100644 else ret = 0; diff --git a/fs/udf/partition.c b/fs/udf/partition.c -index 1c12b25e84cc..bf97348fe5b0 100644 +index 1c12b25e84ccb0..bf97348fe5b04b 100644 --- a/fs/udf/partition.c +++ b/fs/udf/partition.c @@ -287,9 +287,11 @@ static uint32_t udf_try_read_meta(struct inode *inode, uint32_t block, @@ -175,10 +174,10 @@ index 1c12b25e84cc..bf97348fe5b0 100644 else { map = &UDF_SB(sb)->s_partmaps[partition]; diff --git a/fs/udf/truncate.c b/fs/udf/truncate.c -index f8a8a22102a3..68e3c3bbecfe 100644 +index c332933927b573..dc0809f9bfb053 100644 --- a/fs/udf/truncate.c +++ b/fs/udf/truncate.c -@@ -218,10 +218,12 @@ int udf_truncate_extents(struct inode *inode) +@@ -219,10 +219,12 @@ int udf_truncate_extents(struct inode *inode) else BUG(); @@ -194,7 +193,7 @@ index f8a8a22102a3..68e3c3bbecfe 100644 WARN_ON(byte_offset); return 0; diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h -index 5290c1fa159a..a96e25fe82c5 100644 +index 5290c1fa159a34..a96e25fe82c5b4 100644 --- a/fs/udf/udfdecl.h +++ b/fs/udf/udfdecl.h @@ -161,8 +161,9 @@ extern int udf_setsize(struct inode *, loff_t); diff --git a/cve/CVE-2024-50211/6.1/0003-55dd5b4db3bf-udf-make-sure-i-lenextents-is-uptodate-on-inode-evic.patch b/cve/CVE-2024-50211/6.1/0003-55dd5b4db3bf-udf-make-sure-i-lenextents-is-uptodate-on-inode-evic.patch index 6c2c7b3e..658c42fd 100644 --- a/cve/CVE-2024-50211/6.1/0003-55dd5b4db3bf-udf-make-sure-i-lenextents-is-uptodate-on-inode-evic.patch +++ b/cve/CVE-2024-50211/6.1/0003-55dd5b4db3bf-udf-make-sure-i-lenextents-is-uptodate-on-inode-evic.patch @@ -23,13 +23,12 @@ updating of i_lenExtents to silence the errors. Fixes: b405c1e58b73 ("udf: refactor udf_next_aext() to handle error") CC: stable@vger.kernel.org Signed-off-by: Jan Kara -Signed-off-by: Igor Pecovnik --- fs/udf/truncate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/udf/truncate.c b/fs/udf/truncate.c -index 68e3c3bbecfe..487995455d30 100644 +index dc0809f9bfb053..9e7749f8e1bc3e 100644 --- a/fs/udf/truncate.c +++ b/fs/udf/truncate.c @@ -119,7 +119,7 @@ void udf_truncate_tail_extent(struct inode *inode) diff --git a/cve/CVE-2024-50211/6.1/base b/cve/CVE-2024-50211/6.1/base index 433951bd..5c0fc3d6 100644 --- a/cve/CVE-2024-50211/6.1/base +++ b/cve/CVE-2024-50211/6.1/base @@ -1 +1 @@ -08889840163ebcdb7e24bf7ec311bc2e6fc3aaea +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2024-50211/6.1/fasttrack.json b/cve/CVE-2024-50211/6.1/fasttrack.json index 56f8c661..d99db31b 100644 --- a/cve/CVE-2024-50211/6.1/fasttrack.json +++ b/cve/CVE-2024-50211/6.1/fasttrack.json @@ -1,13 +1,13 @@ { "series": "6.1", "base": { - "commit": "08889840163ebcdb7e24bf7ec311bc2e6fc3aaea", - "version": "6.1.191" + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" }, "incident": "CVE-2024-50211", "outcome": "patched-needs-review", "fixed_in": null, - "made": "2026-11-02T02:08:20Z", + "made": "2026-11-29T04:06:45Z", "patches": [ { "series": "6.1", @@ -24,7 +24,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", @@ -41,7 +43,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", @@ -58,7 +62,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false } ] } diff --git a/cve/CVE-2024-50211/6.1/series.conf b/cve/CVE-2024-50211/6.1/series.conf index 41604081..390f71ab 100644 --- a/cve/CVE-2024-50211/6.1/series.conf +++ b/cve/CVE-2024-50211/6.1/series.conf @@ -1,6 +1,6 @@ # 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-b405c1e58b73-udf-refactor-udf-next-aext-to-handle-error.patch 0002-c226964ec786-udf-refactor-inode-bmap-to-handle-error.patch diff --git a/cve/CVE-2024-53176/6.1/0001-3fa640d035e5-smb-during-unmount-ensure-all-cached-dir-instances-d.patch b/cve/CVE-2024-53176/6.1/0001-3fa640d035e5-smb-during-unmount-ensure-all-cached-dir-instances-d.patch index d9ffcc8c..cb146edb 100644 --- a/cve/CVE-2024-53176/6.1/0001-3fa640d035e5-smb-during-unmount-ensure-all-cached-dir-instances-d.patch +++ b/cve/CVE-2024-53176/6.1/0001-3fa640d035e5-smb-during-unmount-ensure-all-cached-dir-instances-d.patch @@ -63,10 +63,10 @@ Signed-off-by: Steve French 6 files changed, 130 insertions(+), 30 deletions(-) diff --git a/fs/smb/client/cached_dir.c b/fs/smb/client/cached_dir.c -index 3ff56321b7a1..aa5f2a949942 100644 +index f770615418b8f7..6e439f7de18867 100644 --- a/fs/smb/client/cached_dir.c +++ b/fs/smb/client/cached_dir.c -@@ -16,6 +16,11 @@ static struct cached_fid *init_cached_dir(const char *path); +@@ -17,6 +17,11 @@ static struct cached_fid *init_cached_dir(const char *path); static void free_cached_dir(struct cached_fid *cfid); static void smb2_close_cached_fid(struct kref *ref); @@ -78,7 +78,7 @@ index 3ff56321b7a1..aa5f2a949942 100644 static struct cached_fid *find_or_create_cached_dir(struct cached_fids *cfids, const char *path, bool lookup_only) -@@ -464,7 +469,10 @@ void close_all_cached_dirs(struct cifs_sb_info *cifs_sb) +@@ -477,7 +482,10 @@ void close_all_cached_dirs(struct cifs_sb_info *cifs_sb) struct cifs_tcon *tcon; struct tcon_link *tlink; struct cached_fids *cfids; @@ -89,7 +89,7 @@ index 3ff56321b7a1..aa5f2a949942 100644 for (node = rb_first(root); node; node = rb_next(node)) { tlink = rb_entry(node, struct tcon_link, tl_rbnode); tcon = tlink_tcon(tlink); -@@ -473,11 +481,30 @@ void close_all_cached_dirs(struct cifs_sb_info *cifs_sb) +@@ -486,11 +494,30 @@ void close_all_cached_dirs(struct cifs_sb_info *cifs_sb) cfids = tcon->cfids; if (cfids == NULL) continue; @@ -121,7 +121,7 @@ index 3ff56321b7a1..aa5f2a949942 100644 } /* -@@ -488,47 +515,71 @@ void invalidate_all_cached_dirs(struct cifs_tcon *tcon) +@@ -501,47 +528,71 @@ void invalidate_all_cached_dirs(struct cifs_tcon *tcon) { struct cached_fids *cfids = tcon->cfids; struct cached_fid *cfid, *q; @@ -213,7 +213,7 @@ index 3ff56321b7a1..aa5f2a949942 100644 } int cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16]) -@@ -554,8 +605,10 @@ int cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16]) +@@ -567,8 +618,10 @@ int cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16]) cfid->on_list = false; cfids->num_entries--; @@ -226,7 +226,7 @@ index 3ff56321b7a1..aa5f2a949942 100644 spin_unlock(&cfids->cfid_list_lock); return true; } -@@ -577,7 +630,8 @@ static struct cached_fid *init_cached_dir(const char *path) +@@ -590,7 +643,8 @@ static struct cached_fid *init_cached_dir(const char *path) return NULL; } @@ -236,7 +236,7 @@ index 3ff56321b7a1..aa5f2a949942 100644 INIT_LIST_HEAD(&cfid->entry); INIT_LIST_HEAD(&cfid->dirents.entries); mutex_init(&cfid->dirents.de_mutex); -@@ -590,6 +644,9 @@ static void free_cached_dir(struct cached_fid *cfid) +@@ -603,6 +657,9 @@ static void free_cached_dir(struct cached_fid *cfid) { struct cached_dirent *dirent, *q; @@ -246,7 +246,7 @@ index 3ff56321b7a1..aa5f2a949942 100644 dput(cfid->dentry); cfid->dentry = NULL; -@@ -607,6 +664,25 @@ static void free_cached_dir(struct cached_fid *cfid) +@@ -620,6 +677,25 @@ static void free_cached_dir(struct cached_fid *cfid) kfree(cfid); } @@ -272,7 +272,7 @@ index 3ff56321b7a1..aa5f2a949942 100644 struct cached_fids *init_cached_dirs(void) { struct cached_fids *cfids; -@@ -616,6 +692,9 @@ struct cached_fids *init_cached_dirs(void) +@@ -629,6 +705,9 @@ struct cached_fids *init_cached_dirs(void) return NULL; spin_lock_init(&cfids->cfid_list_lock); INIT_LIST_HEAD(&cfids->entries); @@ -282,7 +282,7 @@ index 3ff56321b7a1..aa5f2a949942 100644 return cfids; } -@@ -628,12 +707,19 @@ void free_cached_dirs(struct cached_fids *cfids) +@@ -641,12 +720,19 @@ void free_cached_dirs(struct cached_fids *cfids) struct cached_fid *cfid, *q; LIST_HEAD(entry); @@ -303,7 +303,7 @@ index 3ff56321b7a1..aa5f2a949942 100644 list_for_each_entry_safe(cfid, q, &entry, entry) { diff --git a/fs/smb/client/cached_dir.h b/fs/smb/client/cached_dir.h -index 467570ad7888..e0e969451d92 100644 +index 467570ad788879..e0e969451d926b 100644 --- a/fs/smb/client/cached_dir.h +++ b/fs/smb/client/cached_dir.h @@ -44,7 +44,8 @@ struct cached_fid { @@ -331,7 +331,7 @@ index 467570ad7888..e0e969451d92 100644 extern struct cached_fids *init_cached_dirs(void); diff --git a/fs/smb/client/cifsfs.c b/fs/smb/client/cifsfs.c -index c43c937b3f57..c479aa52a88f 100644 +index edca52a167a21b..64a0bdd434839a 100644 --- a/fs/smb/client/cifsfs.c +++ b/fs/smb/client/cifsfs.c @@ -155,6 +155,7 @@ struct workqueue_struct *fileinfo_put_wq; @@ -342,7 +342,7 @@ index c43c937b3f57..c479aa52a88f 100644 __u32 cifs_lock_secret; /* -@@ -1919,9 +1920,16 @@ init_cifs(void) +@@ -1940,9 +1941,16 @@ init_cifs(void) goto out_destroy_deferredclose_wq; } @@ -360,7 +360,7 @@ index c43c937b3f57..c479aa52a88f 100644 rc = init_mids(); if (rc) -@@ -1983,6 +1991,8 @@ init_cifs(void) +@@ -2007,6 +2015,8 @@ init_cifs(void) destroy_mids(); out_destroy_inodecache: cifs_destroy_inodecache(); @@ -370,10 +370,10 @@ index c43c937b3f57..c479aa52a88f 100644 destroy_workqueue(serverclose_wq); out_destroy_deferredclose_wq: diff --git a/fs/smb/client/cifsglob.h b/fs/smb/client/cifsglob.h -index a9dce6fe2705..5a5c33fc3be6 100644 +index 6658d6c532f80d..da4df8be56559f 100644 --- a/fs/smb/client/cifsglob.h +++ b/fs/smb/client/cifsglob.h -@@ -1898,7 +1898,7 @@ require use of the stronger protocol */ +@@ -1900,7 +1900,7 @@ require use of the stronger protocol */ * cifsInodeInfo->lock_sem cifsInodeInfo->llist cifs_init_once * ->can_cache_brlcks * cifsInodeInfo->deferred_lock cifsInodeInfo->deferred_closes cifsInodeInfo_alloc @@ -382,7 +382,7 @@ index a9dce6fe2705..5a5c33fc3be6 100644 * cifsFileInfo->fh_mutex cifsFileInfo cifs_new_fileinfo * cifsFileInfo->file_info_lock cifsFileInfo->count cifs_new_fileinfo * ->invalidHandle initiate_cifs_search -@@ -1986,6 +1986,7 @@ extern struct workqueue_struct *fileinfo_put_wq; +@@ -1988,6 +1988,7 @@ extern struct workqueue_struct *fileinfo_put_wq; extern struct workqueue_struct *cifsoplockd_wq; extern struct workqueue_struct *deferredclose_wq; extern struct workqueue_struct *serverclose_wq; @@ -391,7 +391,7 @@ index a9dce6fe2705..5a5c33fc3be6 100644 extern mempool_t *cifs_mid_poolp; diff --git a/fs/smb/client/inode.c b/fs/smb/client/inode.c -index f87a0a6d68c9..185f0968fdba 100644 +index f87a0a6d68c939..185f0968fdba7c 100644 --- a/fs/smb/client/inode.c +++ b/fs/smb/client/inode.c @@ -2334,13 +2334,10 @@ cifs_dentry_needs_reval(struct dentry *dentry) @@ -409,7 +409,7 @@ index f87a0a6d68c9..185f0968fdba 100644 } /* diff --git a/fs/smb/client/trace.h b/fs/smb/client/trace.h -index ef8e849c09f2..3d3b93d94599 100644 +index ef8e849c09f2c2..3d3b93d94599a7 100644 --- a/fs/smb/client/trace.h +++ b/fs/smb/client/trace.h @@ -27,6 +27,7 @@ diff --git a/cve/CVE-2024-53176/6.1/0002-claude-smb-client-destroy-cfid-put-wq-on-module-exit.patch b/cve/CVE-2024-53176/6.1/0002-633609c48a35-smb-client-destroy-cfid-put-wq-on-module-exit.patch similarity index 72% rename from cve/CVE-2024-53176/6.1/0002-claude-smb-client-destroy-cfid-put-wq-on-module-exit.patch rename to cve/CVE-2024-53176/6.1/0002-633609c48a35-smb-client-destroy-cfid-put-wq-on-module-exit.patch index 8835e65d..b3c8bc9d 100644 --- a/cve/CVE-2024-53176/6.1/0002-claude-smb-client-destroy-cfid-put-wq-on-module-exit.patch +++ b/cve/CVE-2024-53176/6.1/0002-633609c48a35-smb-client-destroy-cfid-put-wq-on-module-exit.patch @@ -1,29 +1,32 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 X-Fasttrack-Source: claude +X-Fasttrack-Upstream: 633609c48a358134d3f8ef8241dff24841577f58 X-Fasttrack-CVE: CVE-2024-53176 From: Enzo Matsumiya Date: Tue, 10 Dec 2024 10:21:48 -0300 Subject: [PATCH] smb: client: destroy cfid_put_wq on module exit +commit 633609c48a358134d3f8ef8241dff24841577f58 upstream. + +[ Backport: cifs_proc_clean() moved up in exit_cifs() in 6.1.193: adjust context. ] + Fix potential problem in rmmod Signed-off-by: Enzo Matsumiya Signed-off-by: Steve French - -(cherry picked from commit 633609c48a358134d3f8ef8241dff24841577f58) --- fs/smb/client/cifsfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/smb/client/cifsfs.c b/fs/smb/client/cifsfs.c -index c479aa52a88f..2d109fdec620 100644 +index 64a0bdd434839a..f00e694a032018 100644 --- a/fs/smb/client/cifsfs.c +++ b/fs/smb/client/cifsfs.c -@@ -2035,6 +2035,7 @@ exit_cifs(void) +@@ -2058,6 +2058,7 @@ exit_cifs(void) destroy_workqueue(decrypt_wq); destroy_workqueue(fileinfo_put_wq); destroy_workqueue(serverclose_wq); + destroy_workqueue(cfid_put_wq); destroy_workqueue(cifsiod_wq); - cifs_proc_clean(); } + diff --git a/cve/CVE-2024-53176/6.1/base b/cve/CVE-2024-53176/6.1/base index 433951bd..5c0fc3d6 100644 --- a/cve/CVE-2024-53176/6.1/base +++ b/cve/CVE-2024-53176/6.1/base @@ -1 +1 @@ -08889840163ebcdb7e24bf7ec311bc2e6fc3aaea +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2024-53176/6.1/fasttrack.json b/cve/CVE-2024-53176/6.1/fasttrack.json index dde019d6..34fdf090 100644 --- a/cve/CVE-2024-53176/6.1/fasttrack.json +++ b/cve/CVE-2024-53176/6.1/fasttrack.json @@ -1,13 +1,13 @@ { "series": "6.1", "base": { - "commit": "08889840163ebcdb7e24bf7ec311bc2e6fc3aaea", - "version": "6.1.191" + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" }, "incident": "CVE-2024-53176", "outcome": "patched-needs-review", "fixed_in": null, - "made": "2026-11-01T01:19:56Z", + "made": "2026-11-29T03:58:45Z", "patches": [ { "series": "6.1", @@ -24,11 +24,13 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", - "upstream": "", + "upstream": "633609c48a358134d3f8ef8241dff24841577f58", "subject": "smb: client: destroy cfid_put_wq on module exit", "source": "claude", "cves": [ @@ -37,11 +39,13 @@ "kev": false, "verdict": "claude-backport", "reason": "backport made in work package; review before use", - "filename": "0002-claude-smb-client-destroy-cfid-put-wq-on-module-exit.patch", + "filename": "0002-633609c48a35-smb-client-destroy-cfid-put-wq-on-module-exit.patch", "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false } ] } diff --git a/cve/CVE-2024-53176/6.1/series.conf b/cve/CVE-2024-53176/6.1/series.conf index 81990cef..833bd466 100644 --- a/cve/CVE-2024-53176/6.1/series.conf +++ b/cve/CVE-2024-53176/6.1/series.conf @@ -1,6 +1,6 @@ # 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-3fa640d035e5-smb-during-unmount-ensure-all-cached-dir-instances-d.patch -0002-claude-smb-client-destroy-cfid-put-wq-on-module-exit.patch +0002-633609c48a35-smb-client-destroy-cfid-put-wq-on-module-exit.patch diff --git a/cve/CVE-2025-68768/6.1/0001-1231eec6994b-inet-frags-add-inet-frag-queue-flush.patch b/cve/CVE-2025-68768/6.1/0001-1231eec6994b-inet-frags-add-inet-frag-queue-flush.patch index a3b6f31a..390a5af1 100644 --- a/cve/CVE-2025-68768/6.1/0001-1231eec6994b-inet-frags-add-inet-frag-queue-flush.patch +++ b/cve/CVE-2025-68768/6.1/0001-1231eec6994b-inet-frags-add-inet-frag-queue-flush.patch @@ -17,7 +17,6 @@ need to call it from a few places in the next patch. Reviewed-by: Eric Dumazet Link: https://patch.msgid.link/20251207010942.1672972-3-kuba@kernel.org Signed-off-by: Jakub Kicinski -Signed-off-by: Igor Pecovnik --- include/net/inet_frag.h | 3 +-- net/ipv4/inet_fragment.c | 12 ++++++++++-- @@ -25,10 +24,10 @@ Signed-off-by: Igor Pecovnik 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/include/net/inet_frag.h b/include/net/inet_frag.h -index 0b0876610553..909f6a256f98 100644 +index 2ed882dd089a71..1adde912de5f73 100644 --- a/include/net/inet_frag.h +++ b/include/net/inet_frag.h -@@ -138,8 +138,7 @@ void inet_frag_kill(struct inet_frag_queue *q); +@@ -140,8 +140,7 @@ void inet_frag_kill(struct inet_frag_queue *q); void inet_frag_destroy(struct inet_frag_queue *q); struct inet_frag_queue *inet_frag_find(struct fqdir *fqdir, void *key); @@ -39,7 +38,7 @@ index 0b0876610553..909f6a256f98 100644 static inline void inet_frag_put(struct inet_frag_queue *q) { diff --git a/net/ipv4/inet_fragment.c b/net/ipv4/inet_fragment.c -index 9586bbbe92f9..bac38d2b0e81 100644 +index ba1e851257002d..18c4df8e3b2340 100644 --- a/net/ipv4/inet_fragment.c +++ b/net/ipv4/inet_fragment.c @@ -263,7 +263,7 @@ static void inet_frag_destroy_rcu(struct rcu_head *head) @@ -69,7 +68,7 @@ index 9586bbbe92f9..bac38d2b0e81 100644 void inet_frag_destroy(struct inet_frag_queue *q) { diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c -index 43b1265f5ac1..421fac3811f9 100644 +index be83c4b74036bd..dece588bb2722f 100644 --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c @@ -252,15 +252,12 @@ static int ip_frag_too_far(struct ipq *qp) diff --git a/cve/CVE-2025-68768/6.1/0002-006a5035b495-inet-frags-flush-pending-skbs-in-fqdir-pre-exit.patch b/cve/CVE-2025-68768/6.1/0002-006a5035b495-inet-frags-flush-pending-skbs-in-fqdir-pre-exit.patch index d77f5acf..e0566be7 100644 --- a/cve/CVE-2025-68768/6.1/0002-006a5035b495-inet-frags-flush-pending-skbs-in-fqdir-pre-exit.patch +++ b/cve/CVE-2025-68768/6.1/0002-006a5035b495-inet-frags-flush-pending-skbs-in-fqdir-pre-exit.patch @@ -42,7 +42,6 @@ Fixes: d5dd88794a13 ("inet: fix various use-after-free in defrags units") Reviewed-by: Eric Dumazet Link: https://patch.msgid.link/20251207010942.1672972-4-kuba@kernel.org Signed-off-by: Jakub Kicinski -Signed-off-by: Igor Pecovnik --- include/net/inet_frag.h | 13 +------------ include/net/ipv6_frag.h | 9 ++++++--- @@ -51,10 +50,10 @@ Signed-off-by: Igor Pecovnik 4 files changed, 49 insertions(+), 20 deletions(-) diff --git a/include/net/inet_frag.h b/include/net/inet_frag.h -index 909f6a256f98..eb99a6dbf397 100644 +index 1adde912de5f73..acb0772a6ad6a6 100644 --- a/include/net/inet_frag.h +++ b/include/net/inet_frag.h -@@ -120,18 +120,7 @@ void inet_frags_fini(struct inet_frags *); +@@ -122,18 +122,7 @@ void inet_frags_fini(struct inet_frags *); int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, struct net *net); @@ -75,7 +74,7 @@ index 909f6a256f98..eb99a6dbf397 100644 void inet_frag_kill(struct inet_frag_queue *q); diff --git a/include/net/ipv6_frag.h b/include/net/ipv6_frag.h -index 5052c66e22d2..27fcccf086cd 100644 +index 5052c66e22d236..27fcccf086cd7b 100644 --- a/include/net/ipv6_frag.h +++ b/include/net/ipv6_frag.h @@ -68,9 +68,6 @@ ip6frag_expire_frag_queue(struct net *net, struct frag_queue *fq) @@ -102,7 +101,7 @@ index 5052c66e22d2..27fcccf086cd 100644 if (!dev) goto out; diff --git a/net/ipv4/inet_fragment.c b/net/ipv4/inet_fragment.c -index bac38d2b0e81..83e05d258f69 100644 +index 18c4df8e3b2340..fee66342b7335a 100644 --- a/net/ipv4/inet_fragment.c +++ b/net/ipv4/inet_fragment.c @@ -218,6 +218,41 @@ static int __init inet_frag_wq_init(void) @@ -148,7 +147,7 @@ index bac38d2b0e81..83e05d258f69 100644 { INIT_WORK(&fqdir->destroy_work, fqdir_work_fn); diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c -index 421fac3811f9..cfa4204be6ee 100644 +index dece588bb2722f..4855428fcf127b 100644 --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c @@ -148,17 +148,19 @@ static void ip_expire(struct timer_list *t) diff --git a/cve/CVE-2025-68768/6.1/0003-32594b098549-inet-frags-fix-use-after-free-caused-by-the-fqdir-pr.patch b/cve/CVE-2025-68768/6.1/0003-32594b098549-inet-frags-fix-use-after-free-caused-by-the-fqdir-pr.patch index dfebdeb6..ffeb6285 100644 --- a/cve/CVE-2025-68768/6.1/0003-32594b098549-inet-frags-fix-use-after-free-caused-by-the-fqdir-pr.patch +++ b/cve/CVE-2025-68768/6.1/0003-32594b098549-inet-frags-fix-use-after-free-caused-by-the-fqdir-pr.patch @@ -9,6 +9,9 @@ Subject: [PATCH] inet: frags: fix use-after-free caused by the commit 32594b09854970d7ba83eb2dc8c69a2edd158c8e upstream. +[ Backport: also move the q->truesize reset of stable 85b53c900b50 (upstream + 3ae20e4697eb) from ip_frag_reinit() into inet_frag_queue_flush(), as upstream has it. ] + On netns teardown, fqdir_pre_exit() walks the fqdir rhashtable and flushes every fragment queue that is not yet complete using inet_frag_queue_flush(). That helper frees all the skbs queued on the @@ -40,37 +43,38 @@ Suggested-by: Eric Dumazet Signed-off-by: Hyunwoo Kim Link: https://patch.msgid.link/ah6ukYq5G98LshdA@v4bel Signed-off-by: Jakub Kicinski -Signed-off-by: Igor Pecovnik --- - net/ipv4/inet_fragment.c | 3 +++ - net/ipv4/ip_fragment.c | 3 --- - 2 files changed, 3 insertions(+), 3 deletions(-) + net/ipv4/inet_fragment.c | 4 ++++ + net/ipv4/ip_fragment.c | 4 ---- + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net/ipv4/inet_fragment.c b/net/ipv4/inet_fragment.c -index 83e05d258f69..f60bb736ea72 100644 +index fee66342b7335a..e4318f2db7859d 100644 --- a/net/ipv4/inet_fragment.c +++ b/net/ipv4/inet_fragment.c -@@ -325,6 +325,9 @@ void inet_frag_queue_flush(struct inet_frag_queue *q) +@@ -325,6 +325,10 @@ void inet_frag_queue_flush(struct inet_frag_queue *q) sum = inet_frag_rbtree_purge(&q->rb_fragments); sub_frag_mem_limit(q->fqdir, sum); + q->rb_fragments = RB_ROOT; + q->fragments_tail = NULL; + q->last_run_head = NULL; ++ q->truesize = 0; } EXPORT_SYMBOL(inet_frag_queue_flush); diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c -index cfa4204be6ee..ea3e07741c30 100644 +index 4855428fcf127b..ea3e07741c30a0 100644 --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c -@@ -264,9 +264,6 @@ static int ip_frag_reinit(struct ipq *qp) +@@ -264,10 +264,6 @@ static int ip_frag_reinit(struct ipq *qp) qp->q.flags = 0; qp->q.len = 0; qp->q.meat = 0; - qp->q.rb_fragments = RB_ROOT; - qp->q.fragments_tail = NULL; - qp->q.last_run_head = NULL; +- qp->q.truesize = 0; qp->iif = 0; qp->ecn = 0; diff --git a/cve/CVE-2025-68768/6.1/0004-b824476c56a1-inet-frags-invalidate-queues-before-flushing-them.patch b/cve/CVE-2025-68768/6.1/0004-b824476c56a1-inet-frags-invalidate-queues-before-flushing-them.patch index ae24bf94..da484208 100644 --- a/cve/CVE-2025-68768/6.1/0004-b824476c56a1-inet-frags-invalidate-queues-before-flushing-them.patch +++ b/cve/CVE-2025-68768/6.1/0004-b824476c56a1-inet-frags-invalidate-queues-before-flushing-them.patch @@ -74,13 +74,12 @@ Reviewed-by: Eric Dumazet Signed-off-by: Yilin Zhang Link: https://patch.msgid.link/20260904162800.1095662-1-yilinzhang@moonshot.ai Signed-off-by: Jakub Kicinski -Signed-off-by: Igor Pecovnik --- net/ipv4/inet_fragment.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/net/ipv4/inet_fragment.c b/net/ipv4/inet_fragment.c -index f60bb736ea72..920355873aa5 100644 +index e4318f2db7859d..143910e3849801 100644 --- a/net/ipv4/inet_fragment.c +++ b/net/ipv4/inet_fragment.c @@ -242,10 +242,19 @@ void fqdir_pre_exit(struct fqdir *fqdir) diff --git a/cve/CVE-2025-68768/6.1/base b/cve/CVE-2025-68768/6.1/base index 433951bd..5c0fc3d6 100644 --- a/cve/CVE-2025-68768/6.1/base +++ b/cve/CVE-2025-68768/6.1/base @@ -1 +1 @@ -08889840163ebcdb7e24bf7ec311bc2e6fc3aaea +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2025-68768/6.1/fasttrack.json b/cve/CVE-2025-68768/6.1/fasttrack.json index a064cb1d..5924aeeb 100644 --- a/cve/CVE-2025-68768/6.1/fasttrack.json +++ b/cve/CVE-2025-68768/6.1/fasttrack.json @@ -1,13 +1,13 @@ { "series": "6.1", "base": { - "commit": "08889840163ebcdb7e24bf7ec311bc2e6fc3aaea", - "version": "6.1.191" + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" }, "incident": "CVE-2025-68768", "outcome": "patched-needs-review", "fixed_in": null, - "made": "2026-11-02T01:55:13Z", + "made": "2026-11-29T04:05:07Z", "patches": [ { "series": "6.1", @@ -24,7 +24,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", @@ -41,7 +43,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", @@ -58,7 +62,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", @@ -75,7 +81,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false } ] } diff --git a/cve/CVE-2025-68768/6.1/series.conf b/cve/CVE-2025-68768/6.1/series.conf index 6de67443..074d71fb 100644 --- a/cve/CVE-2025-68768/6.1/series.conf +++ b/cve/CVE-2025-68768/6.1/series.conf @@ -1,6 +1,6 @@ # 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-1231eec6994b-inet-frags-add-inet-frag-queue-flush.patch 0002-006a5035b495-inet-frags-flush-pending-skbs-in-fqdir-pre-exit.patch diff --git a/cve/CVE-2026-31487/6.1/0001-cb3d1049f4ea-driver-core-generalize-driver-override-in-struct-dev.patch b/cve/CVE-2026-31487/6.1/0001-cb3d1049f4ea-driver-core-generalize-driver-override-in-struct-dev.patch index 8f05743c..e3293119 100644 --- a/cve/CVE-2026-31487/6.1/0001-cb3d1049f4ea-driver-core-generalize-driver-override-in-struct-dev.patch +++ b/cve/CVE-2026-31487/6.1/0001-cb3d1049f4ea-driver-core-generalize-driver-override-in-struct-dev.patch @@ -11,8 +11,9 @@ commit cb3d1049f4ea77d5ad93f17d8ac1f2ed4da70501 upstream. [ Backport: 6.1 bus_add_device() and bus_remove_device() use bus->p, not struct subsys_private *sp. Add the driver_override group in the 6.1 code layout. ] -[ Backport: in 6.1 struct bus_type, add the driver_override flag and its - kernel-doc after lock_key. ] +[ Backport: 6.1.193 moved need_parent_lock from struct bus_type to + struct device_type. Add the driver_override flag and its kernel-doc + after lock_key. ] Currently, there are 12 busses (including platform and PCI) that duplicate the driver_override logic for their individual devices. @@ -45,8 +46,6 @@ Link: https://patch.msgid.link/20260303115720.48783-2-dakr@kernel.org [ Use dev->bus instead of sp->bus for consistency; fix commit message to refer to the struct bus_type's driver_override feature flag. - Danilo ] Signed-off-by: Danilo Krummrich - -(cherry picked from commit cb3d1049f4ea77d5ad93f17d8ac1f2ed4da70501) --- drivers/base/bus.c | 42 +++++++++++++++++++++++++- drivers/base/core.c | 2 ++ @@ -56,7 +55,7 @@ Signed-off-by: Danilo Krummrich 5 files changed, 161 insertions(+), 1 deletion(-) diff --git a/drivers/base/bus.c b/drivers/base/bus.c -index 941532ddfdc6..70246fd69f25 100644 +index 112e172eee1fd0..06418632399f8c 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c @@ -432,6 +432,36 @@ int bus_for_each_drv(struct bus_type *bus, struct device_driver *start, @@ -123,7 +122,7 @@ index 941532ddfdc6..70246fd69f25 100644 out_groups: device_remove_groups(dev, bus->dev_groups); out_put: -@@ -522,6 +560,8 @@ void bus_remove_device(struct device *dev) +@@ -536,6 +574,8 @@ void bus_remove_device(struct device *dev) sysfs_remove_link(&dev->kobj, "subsystem"); sysfs_remove_link(&dev->bus->p->devices_kset->kobj, dev_name(dev)); @@ -133,10 +132,10 @@ index 941532ddfdc6..70246fd69f25 100644 if (klist_node_attached(&dev->p->knode_bus)) klist_del(&dev->p->knode_bus); diff --git a/drivers/base/core.c b/drivers/base/core.c -index ca6b964f38e7..8ffc305988cd 100644 +index b8b657e02f47c8..fc9c02c2b9da48 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c -@@ -2499,6 +2499,7 @@ static void device_release(struct kobject *kobj) +@@ -2508,6 +2508,7 @@ static void device_release(struct kobject *kobj) devres_release_all(dev); kfree(dev->dma_range_map); @@ -144,7 +143,7 @@ index ca6b964f38e7..8ffc305988cd 100644 if (dev->release) dev->release(dev); -@@ -3187,6 +3188,7 @@ void device_initialize(struct device *dev) +@@ -3198,6 +3199,7 @@ void device_initialize(struct device *dev) kobject_init(&dev->kobj, &device_ktype); INIT_LIST_HEAD(&dev->dma_pools); mutex_init(&dev->mutex); @@ -153,10 +152,10 @@ index ca6b964f38e7..8ffc305988cd 100644 spin_lock_init(&dev->devres_lock); INIT_LIST_HEAD(&dev->devres_head); diff --git a/drivers/base/dd.c b/drivers/base/dd.c -index bbaac111b247..75caf391d1fb 100644 +index 168587ffe62c1c..9936dea9dd0d61 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c -@@ -375,6 +375,66 @@ static void __exit deferred_probe_exit(void) +@@ -376,6 +376,66 @@ static void __exit deferred_probe_exit(void) } __exitcall(deferred_probe_exit); @@ -224,10 +223,10 @@ index bbaac111b247..75caf391d1fb 100644 * device_is_bound() - Check if device is bound to a driver * @dev: device to check diff --git a/include/linux/device.h b/include/linux/device.h -index 0e83be1bccc4..90517e82176a 100644 +index 70fbcc437360b4..c8572588e1e4ed 100644 --- a/include/linux/device.h +++ b/include/linux/device.h -@@ -498,6 +498,8 @@ enum struct_device_flags { +@@ -622,6 +622,8 @@ enum struct_device_flags { * on. This shrinks the "Board Support Packages" (BSPs) and * minimizes board-specific #ifdefs in drivers. * @driver_data: Private pointer for driver specific info. @@ -236,7 +235,7 @@ index 0e83be1bccc4..90517e82176a 100644 * @links: Links to suppliers and consumers of this device. * @power: For device power management. * See Documentation/driver-api/pm/devices.rst for details. -@@ -587,6 +589,10 @@ struct device { +@@ -711,6 +713,10 @@ struct device { core doesn't touch it */ void *driver_data; /* Driver data, set and get with dev_set_drvdata/dev_get_drvdata */ @@ -247,7 +246,7 @@ index 0e83be1bccc4..90517e82176a 100644 struct mutex mutex; /* mutex to synchronize calls to * its driver. */ -@@ -732,6 +738,54 @@ static inline struct device *kobj_to_dev(struct kobject *kobj) +@@ -856,6 +862,54 @@ static inline struct device *kobj_to_dev(struct kobject *kobj) return container_of(kobj, struct device, kobj); } @@ -303,7 +302,7 @@ index 0e83be1bccc4..90517e82176a 100644 * device_iommu_mapped - Returns true when the device DMA is translated * by an IOMMU diff --git a/include/linux/device/bus.h b/include/linux/device/bus.h -index d8b29ccd07e5..7a9e4aecbe65 100644 +index 05667a8e340add..6725d4a9009b62 100644 --- a/include/linux/device/bus.h +++ b/include/linux/device/bus.h @@ -69,6 +69,9 @@ struct fwnode_handle; @@ -313,14 +312,14 @@ index d8b29ccd07e5..7a9e4aecbe65 100644 + * @driver_override: Set to true if this bus supports the driver_override + * mechanism, which allows userspace to force a specific + * driver to bind to a device via a sysfs attribute. - * @need_parent_lock: When probing or removing a device on this bus, the - * device core should lock the device's parent. * -@@ -114,6 +117,7 @@ struct bus_type { + * A bus is a channel between the processor and one or more devices. For the + * purposes of the device model, all devices are connected via a bus, even if +@@ -112,6 +115,7 @@ struct bus_type { struct subsys_private *p; struct lock_class_key lock_key; + bool driver_override; - bool need_parent_lock; }; + extern int __must_check bus_register(struct bus_type *bus); diff --git a/cve/CVE-2026-31487/6.1/0002-cc34d77dd487-spi-use-generic-driver-override-infrastructure.patch b/cve/CVE-2026-31487/6.1/0002-cc34d77dd487-spi-use-generic-driver-override-infrastructure.patch index c8c11636..d9c7a65d 100644 --- a/cve/CVE-2026-31487/6.1/0002-cc34d77dd487-spi-use-generic-driver-override-infrastructure.patch +++ b/cve/CVE-2026-31487/6.1/0002-cc34d77dd487-spi-use-generic-driver-override-infrastructure.patch @@ -3,7 +3,7 @@ X-Fasttrack-Source: claude X-Fasttrack-Upstream: cc34d77dd48708d810c12bfd6f5bf03304f6c824 X-Fasttrack-CVE: CVE-2026-31487 From: Danilo Krummrich -Date: Sun, 1 Nov 2026 03:29:10 +0100 +Date: Tue, 24 Mar 2026 01:59:15 +0100 Subject: [PATCH] spi: use generic driver_override infrastructure commit cc34d77dd48708d810c12bfd6f5bf03304f6c824 upstream. @@ -43,7 +43,7 @@ Signed-off-by: Mark Brown 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c -index 2dbdf10e9803..8b3c93421d9f 100644 +index 9658d4100c40fb..fc2bb7d72a0231 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -51,7 +51,6 @@ static void spidev_release(struct device *dev) @@ -98,7 +98,7 @@ index 2dbdf10e9803..8b3c93421d9f 100644 /* Attempt an OF style match */ if (of_driver_match_device(dev, drv)) diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h -index 0ce659d6fcb7..95fc83c77600 100644 +index 0ce659d6fcb752..95fc83c776000c 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -149,10 +149,6 @@ extern int spi_delay_exec(struct spi_delay *_delay, struct spi_transfer *xfer); diff --git a/cve/CVE-2026-31487/6.1/base b/cve/CVE-2026-31487/6.1/base index 433951bd..5c0fc3d6 100644 --- a/cve/CVE-2026-31487/6.1/base +++ b/cve/CVE-2026-31487/6.1/base @@ -1 +1 @@ -08889840163ebcdb7e24bf7ec311bc2e6fc3aaea +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2026-31487/6.1/fasttrack.json b/cve/CVE-2026-31487/6.1/fasttrack.json index 5d18aa94..2a0451ac 100644 --- a/cve/CVE-2026-31487/6.1/fasttrack.json +++ b/cve/CVE-2026-31487/6.1/fasttrack.json @@ -1,13 +1,13 @@ { "series": "6.1", "base": { - "commit": "08889840163ebcdb7e24bf7ec311bc2e6fc3aaea", - "version": "6.1.191" + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" }, "incident": "CVE-2026-31487", "outcome": "patched-needs-review", "fixed_in": null, - "made": "2026-11-01T03:11:32Z", + "made": "2026-11-29T04:03:35Z", "patches": [ { "series": "6.1", @@ -24,7 +24,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", @@ -41,7 +43,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false } ] } diff --git a/cve/CVE-2026-31487/6.1/series.conf b/cve/CVE-2026-31487/6.1/series.conf index 79307300..7eccfad0 100644 --- a/cve/CVE-2026-31487/6.1/series.conf +++ b/cve/CVE-2026-31487/6.1/series.conf @@ -1,6 +1,6 @@ # 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-cb3d1049f4ea-driver-core-generalize-driver-override-in-struct-dev.patch 0002-cc34d77dd487-spi-use-generic-driver-override-infrastructure.patch diff --git a/cve/CVE-2026-31527/6.1/0001-813bbc4d33d2-hwmon-axi-fan-don-t-use-driver-override-as-irq-name.patch b/cve/CVE-2026-31527/6.1/0001-813bbc4d33d2-hwmon-axi-fan-don-t-use-driver-override-as-irq-name.patch index cf6c0026..5eeecaa4 100644 --- a/cve/CVE-2026-31527/6.1/0001-813bbc4d33d2-hwmon-axi-fan-don-t-use-driver-override-as-irq-name.patch +++ b/cve/CVE-2026-31527/6.1/0001-813bbc4d33d2-hwmon-axi-fan-don-t-use-driver-override-as-irq-name.patch @@ -31,7 +31,7 @@ Signed-off-by: Danilo Krummrich 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/axi-fan-control.c b/drivers/hwmon/axi-fan-control.c -index 25abf28084c9..12b6512e45a0 100644 +index 25abf28084c968..12b6512e45a0c9 100644 --- a/drivers/hwmon/axi-fan-control.c +++ b/drivers/hwmon/axi-fan-control.c @@ -518,7 +518,7 @@ static int axi_fan_control_probe(struct platform_device *pdev) diff --git a/cve/CVE-2026-31527/6.1/0002-2b38efc05bf7-driver-core-platform-use-generic-driver-override-inf.patch b/cve/CVE-2026-31527/6.1/0002-2b38efc05bf7-driver-core-platform-use-generic-driver-override-inf.patch index d84f0dc2..933fa33c 100644 --- a/cve/CVE-2026-31527/6.1/0002-2b38efc05bf7-driver-core-platform-use-generic-driver-override-inf.patch +++ b/cve/CVE-2026-31527/6.1/0002-2b38efc05bf7-driver-core-platform-use-generic-driver-override-inf.patch @@ -43,7 +43,7 @@ Signed-off-by: Danilo Krummrich 6 files changed, 13 insertions(+), 48 deletions(-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c -index 3a06c214ca1c..418d499915d5 100644 +index 3a06c214ca1c68..418d499915d546 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -561,7 +561,6 @@ static void platform_device_release(struct device *dev) @@ -117,7 +117,7 @@ index 3a06c214ca1c..418d499915d5 100644 .uevent = platform_uevent, .probe = platform_probe, diff --git a/drivers/bus/simple-pm-bus.c b/drivers/bus/simple-pm-bus.c -index 6b8d6257ed8a..3176a5dd1a96 100644 +index 6b8d6257ed8a49..3176a5dd1a9675 100644 --- a/drivers/bus/simple-pm-bus.c +++ b/drivers/bus/simple-pm-bus.c @@ -26,7 +26,7 @@ static int simple_pm_bus_probe(struct platform_device *pdev) @@ -139,7 +139,7 @@ index 6b8d6257ed8a..3176a5dd1a96 100644 dev_dbg(&pdev->dev, "%s\n", __func__); diff --git a/drivers/clk/imx/clk-scu.c b/drivers/clk/imx/clk-scu.c -index 1a63114ff8b8..6fed1ee617c3 100644 +index 1a63114ff8b843..6fed1ee617c359 100644 --- a/drivers/clk/imx/clk-scu.c +++ b/drivers/clk/imx/clk-scu.c @@ -682,8 +682,7 @@ struct clk_hw *imx_clk_scu_alloc_dev(const char *name, @@ -153,7 +153,7 @@ index 1a63114ff8b8..6fed1ee617c3 100644 platform_device_put(pdev); return ERR_PTR(ret); diff --git a/drivers/slimbus/qcom-ngd-ctrl.c b/drivers/slimbus/qcom-ngd-ctrl.c -index 76cd7d187dd2..f00165b9340a 100644 +index 76cd7d187dd2e2..f00165b9340a1d 100644 --- a/drivers/slimbus/qcom-ngd-ctrl.c +++ b/drivers/slimbus/qcom-ngd-ctrl.c @@ -1459,10 +1459,8 @@ static int of_qcom_slim_ngd_register(struct device *parent, @@ -170,7 +170,7 @@ index 76cd7d187dd2..f00165b9340a 100644 platform_device_put(ngd->pdev); kfree(ngd); diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h -index b845fd83f429..d7f24b72b02f 100644 +index b845fd83f429bb..d7f24b72b02fb9 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h @@ -31,11 +31,6 @@ struct platform_device { @@ -186,7 +186,7 @@ index b845fd83f429..d7f24b72b02f 100644 /* MFD cell pointer */ struct mfd_cell *mfd_cell; diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c -index be0d6984bb86..5356dbe3677c 100644 +index be0d6984bb8611..5356dbe3677ce6 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c @@ -1350,10 +1350,10 @@ static int i2s_create_secondary_device(struct samsung_i2s_priv *priv) diff --git a/cve/CVE-2026-31527/6.1/base b/cve/CVE-2026-31527/6.1/base index 433951bd..5c0fc3d6 100644 --- a/cve/CVE-2026-31527/6.1/base +++ b/cve/CVE-2026-31527/6.1/base @@ -1 +1 @@ -08889840163ebcdb7e24bf7ec311bc2e6fc3aaea +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2026-31527/6.1/fasttrack.json b/cve/CVE-2026-31527/6.1/fasttrack.json index 0f61ece2..25014f2e 100644 --- a/cve/CVE-2026-31527/6.1/fasttrack.json +++ b/cve/CVE-2026-31527/6.1/fasttrack.json @@ -1,13 +1,13 @@ { "series": "6.1", "base": { - "commit": "08889840163ebcdb7e24bf7ec311bc2e6fc3aaea", - "version": "6.1.191" + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" }, "incident": "CVE-2026-31527", "outcome": "patched-needs-review", "fixed_in": null, - "made": "2026-11-01T03:46:09Z", + "made": "2026-11-29T04:10:25Z", "patches": [ { "series": "6.1", @@ -24,7 +24,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", @@ -41,7 +43,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false } ] } diff --git a/cve/CVE-2026-31527/6.1/series.conf b/cve/CVE-2026-31527/6.1/series.conf index 27f10b57..0fe568fa 100644 --- a/cve/CVE-2026-31527/6.1/series.conf +++ b/cve/CVE-2026-31527/6.1/series.conf @@ -1,6 +1,6 @@ # 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-813bbc4d33d2-hwmon-axi-fan-don-t-use-driver-override-as-irq-name.patch 0002-2b38efc05bf7-driver-core-platform-use-generic-driver-override-inf.patch diff --git a/cve/CVE-2026-90230/6.1/0001-claude-nvme-add-the-dhchap-maximum-hd-ids.patch b/cve/CVE-2026-90230/6.1/0001-09e8f0f93491-nvme-add-the-dhchap-maximum-hd-ids.patch similarity index 82% rename from cve/CVE-2026-90230/6.1/0001-claude-nvme-add-the-dhchap-maximum-hd-ids.patch rename to cve/CVE-2026-90230/6.1/0001-09e8f0f93491-nvme-add-the-dhchap-maximum-hd-ids.patch index 46f4f694..d6d28d05 100644 --- a/cve/CVE-2026-90230/6.1/0001-claude-nvme-add-the-dhchap-maximum-hd-ids.patch +++ b/cve/CVE-2026-90230/6.1/0001-09e8f0f93491-nvme-add-the-dhchap-maximum-hd-ids.patch @@ -1,10 +1,15 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 X-Fasttrack-Source: claude +X-Fasttrack-Upstream: 09e8f0f93491c6be867f32d4edc0b16fb5da785e X-Fasttrack-CVE: CVE-2026-90230 From: Alistair Francis Date: Fri, 20 Mar 2026 10:20:44 +1000 Subject: [PATCH] nvme: Add the DHCHAP maximum HD IDs +commit 09e8f0f93491c6be867f32d4edc0b16fb5da785e upstream. + +[ Backport: context only. ] + In preperation for using DHCHAP length in upcoming host and target patches let's add the hash and diffie-hellman ID length macros. @@ -14,16 +19,15 @@ Reviewed-by: Hannes Reinecke Reviewed-by: Chris Leech Signed-off-by: Alistair Francis Signed-off-by: Keith Busch -(cherry picked from commit 09e8f0f93491c6be867f32d4edc0b16fb5da785e) --- include/linux/nvme.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/nvme.h b/include/linux/nvme.h -index 7f8ef075b0d2..4893c684fe10 100644 +index 7a41f5f9cbd1ba..61e73ca44d673e 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h -@@ -1971,4 +1971,8 @@ struct nvme_completion { +@@ -1981,4 +1981,8 @@ struct nvme_completion { #define NVME_MINOR(ver) (((ver) >> 8) & 0xff) #define NVME_TERTIARY(ver) ((ver) & 0xff) diff --git a/cve/CVE-2026-90230/6.1/0002-5bb96cc21883-nvmet-fix-heap-out-of-bounds-read-in-nvmet-auth-nego.patch b/cve/CVE-2026-90230/6.1/0002-5bb96cc21883-nvmet-fix-heap-out-of-bounds-read-in-nvmet-auth-nego.patch index 901643c9..189ec018 100644 --- a/cve/CVE-2026-90230/6.1/0002-5bb96cc21883-nvmet-fix-heap-out-of-bounds-read-in-nvmet-auth-nego.patch +++ b/cve/CVE-2026-90230/6.1/0002-5bb96cc21883-nvmet-fix-heap-out-of-bounds-read-in-nvmet-auth-nego.patch @@ -3,12 +3,12 @@ X-Fasttrack-Source: claude X-Fasttrack-Upstream: 5bb96cc218835769ab74ec7f3ea2bf81fbffe955 X-Fasttrack-CVE: CVE-2026-90230 From: Guixin Liu -Date: Sun, 1 Nov 2026 15:04:17 +0100 +Date: Tue, 4 Aug 2026 11:38:00 +0800 Subject: [PATCH] nvmet: fix heap out-of-bounds read in nvmet_auth_negotiate() commit 5bb96cc218835769ab74ec7f3ea2bf81fbffe955 upstream. -[ Backport: context only. NVME_AUTH_DHCHAP_MAX_*_IDS come from cherry-picked 09e8f0f93491. ] +[ Backport: context only. Stable bf0f7e8d9bc4 (6.1.193) changed the call-site context. NVME_AUTH_DHCHAP_MAX_*_IDS come from cherry-picked 09e8f0f93491. ] nvmet_execute_auth_send() allocates the DH-HMAC-CHAP message buffer with the host-supplied transfer length (tl) and hands it to @@ -38,10 +38,10 @@ Signed-off-by: Keith Busch 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/nvme/target/fabrics-cmd-auth.c b/drivers/nvme/target/fabrics-cmd-auth.c -index 990bb7af4dc8..f13279dd9a7f 100644 +index 35cd01d1271637..d350a37add358c 100644 --- a/drivers/nvme/target/fabrics-cmd-auth.c +++ b/drivers/nvme/target/fabrics-cmd-auth.c -@@ -31,12 +31,16 @@ void nvmet_auth_sq_init(struct nvmet_sq *sq) +@@ -43,12 +43,16 @@ void nvmet_auth_sq_init(struct nvmet_sq *sq) sq->dhchap_step = NVME_AUTH_DHCHAP_MESSAGE_NEGOTIATE; } @@ -59,7 +59,7 @@ index 990bb7af4dc8..f13279dd9a7f 100644 pr_debug("%s: ctrl %d qid %d: data sc_d %d napd %d authid %d halen %d dhlen %d\n", __func__, ctrl->cntlid, req->sq->qid, data->sc_c, data->napd, data->auth_protocol[0].dhchap.authid, -@@ -53,6 +57,10 @@ static u8 nvmet_auth_negotiate(struct nvmet_req *req, void *d) +@@ -65,6 +69,10 @@ static u8 nvmet_auth_negotiate(struct nvmet_req *req, void *d) NVME_AUTH_DHCHAP_AUTH_ID) return NVME_AUTH_DHCHAP_FAILURE_INCORRECT_PAYLOAD; @@ -70,9 +70,9 @@ index 990bb7af4dc8..f13279dd9a7f 100644 for (i = 0; i < data->auth_protocol[0].dhchap.halen; i++) { u8 host_hmac_id = data->auth_protocol[0].dhchap.idlist[i]; -@@ -270,7 +278,7 @@ void nvmet_execute_auth_send(struct nvmet_req *req) - } else if (data->auth_id != req->sq->dhchap_step) +@@ -294,7 +302,7 @@ void nvmet_execute_auth_send(struct nvmet_req *req) goto done_failure1; + } /* Validate negotiation parameters */ - dhchap_status = nvmet_auth_negotiate(req, d); + dhchap_status = nvmet_auth_negotiate(req, d, tl); diff --git a/cve/CVE-2026-90230/6.1/base b/cve/CVE-2026-90230/6.1/base index 433951bd..5c0fc3d6 100644 --- a/cve/CVE-2026-90230/6.1/base +++ b/cve/CVE-2026-90230/6.1/base @@ -1 +1 @@ -08889840163ebcdb7e24bf7ec311bc2e6fc3aaea +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2026-90230/6.1/fasttrack.json b/cve/CVE-2026-90230/6.1/fasttrack.json index d3431c32..cec20423 100644 --- a/cve/CVE-2026-90230/6.1/fasttrack.json +++ b/cve/CVE-2026-90230/6.1/fasttrack.json @@ -1,17 +1,17 @@ { "series": "6.1", "base": { - "commit": "08889840163ebcdb7e24bf7ec311bc2e6fc3aaea", - "version": "6.1.191" + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" }, "incident": "CVE-2026-90230", "outcome": "patched-needs-review", "fixed_in": null, - "made": "2026-11-01T14:28:13Z", + "made": "2026-11-29T04:00:15Z", "patches": [ { "series": "6.1", - "upstream": "", + "upstream": "09e8f0f93491c6be867f32d4edc0b16fb5da785e", "subject": "nvme: Add the DHCHAP maximum HD IDs", "source": "claude", "cves": [ @@ -20,11 +20,13 @@ "kev": false, "verdict": "claude-backport", "reason": "backport made in work package; review before use", - "filename": "0001-claude-nvme-add-the-dhchap-maximum-hd-ids.patch", + "filename": "0001-09e8f0f93491-nvme-add-the-dhchap-maximum-hd-ids.patch", "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", @@ -41,7 +43,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false } ] } diff --git a/cve/CVE-2026-90230/6.1/series.conf b/cve/CVE-2026-90230/6.1/series.conf index d126d131..d4fcec69 100644 --- a/cve/CVE-2026-90230/6.1/series.conf +++ b/cve/CVE-2026-90230/6.1/series.conf @@ -1,6 +1,6 @@ # 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-claude-nvme-add-the-dhchap-maximum-hd-ids.patch +0001-09e8f0f93491-nvme-add-the-dhchap-maximum-hd-ids.patch 0002-5bb96cc21883-nvmet-fix-heap-out-of-bounds-read-in-nvmet-auth-nego.patch diff --git a/cve/CVE-2026-93235/6.1/0001-ba8dac350faf-f2fs-fix-to-zero-post-eof-page.patch b/cve/CVE-2026-93235/6.1/0001-ba8dac350faf-f2fs-fix-to-zero-post-eof-page.patch index 17a6a8bf..83ffec1a 100644 --- a/cve/CVE-2026-93235/6.1/0001-ba8dac350faf-f2fs-fix-to-zero-post-eof-page.patch +++ b/cve/CVE-2026-93235/6.1/0001-ba8dac350faf-f2fs-fix-to-zero-post-eof-page.patch @@ -12,6 +12,7 @@ Content-Transfer-Encoding: 8bit commit ba8dac350faf16afc129ce6303ca4feaf083ccb1 upstream. [ Backport: f2fs_vm_page_mkwrite() uses struct page in 6.1: page->index instead of folio->index. ] +[ Backport: 6.1 has the atomic-file check after filemap_invalidate_lock_shared(); keep it, no blank line added. ] fstest reports a f2fs bug: @@ -56,13 +57,12 @@ Cc: stable@kernel.org Signed-off-by: Chao Yu Reviewed-by: Zhiguo Niu Signed-off-by: Jaegeuk Kim -Signed-off-by: Igor Pecovnik --- - fs/f2fs/file.c | 38 ++++++++++++++++++++++++++++++++++++++ - 1 file changed, 38 insertions(+) + fs/f2fs/file.c | 37 +++++++++++++++++++++++++++++++++++++ + 1 file changed, 37 insertions(+) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c -index 1b2c9122ce10..4baa98b69cd2 100644 +index 8fd0ec9e21b8cc..01d461f151edf6 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -36,6 +36,17 @@ @@ -83,7 +83,7 @@ index 1b2c9122ce10..4baa98b69cd2 100644 static vm_fault_t f2fs_filemap_fault(struct vm_fault *vmf) { struct inode *inode = file_inode(vmf->vma->vm_file); -@@ -100,8 +111,13 @@ static vm_fault_t f2fs_vm_page_mkwrite(struct vm_fault *vmf) +@@ -100,6 +111,10 @@ static vm_fault_t f2fs_vm_page_mkwrite(struct vm_fault *vmf) f2fs_bug_on(sbi, f2fs_has_inline_data(inode)); @@ -93,11 +93,8 @@ index 1b2c9122ce10..4baa98b69cd2 100644 + file_update_time(vmf->vma->vm_file); filemap_invalidate_lock_shared(inode->i_mapping); -+ - lock_page(page); - if (unlikely(page->mapping != inode->i_mapping || - page_offset(page) > i_size_read(inode) || -@@ -1062,6 +1078,8 @@ int f2fs_setattr(struct user_namespace *mnt_userns, struct dentry *dentry, + +@@ -1065,6 +1080,8 @@ int f2fs_setattr(struct user_namespace *mnt_userns, struct dentry *dentry, f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); filemap_invalidate_lock(inode->i_mapping); @@ -106,7 +103,7 @@ index 1b2c9122ce10..4baa98b69cd2 100644 truncate_setsize(inode, attr->ia_size); if (attr->ia_size <= old_size) -@@ -1180,6 +1198,10 @@ static int punch_hole(struct inode *inode, loff_t offset, loff_t len) +@@ -1183,6 +1200,10 @@ static int punch_hole(struct inode *inode, loff_t offset, loff_t len) if (ret) return ret; @@ -117,7 +114,7 @@ index 1b2c9122ce10..4baa98b69cd2 100644 pg_start = ((unsigned long long) offset) >> PAGE_SHIFT; pg_end = ((unsigned long long) offset + len) >> PAGE_SHIFT; -@@ -1464,6 +1486,8 @@ static int f2fs_do_collapse(struct inode *inode, loff_t offset, loff_t len) +@@ -1467,6 +1488,8 @@ static int f2fs_do_collapse(struct inode *inode, loff_t offset, loff_t len) f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); filemap_invalidate_lock(inode->i_mapping); @@ -126,7 +123,7 @@ index 1b2c9122ce10..4baa98b69cd2 100644 f2fs_lock_op(sbi); f2fs_drop_extent_tree(inode); truncate_pagecache(inode, offset); -@@ -1590,6 +1614,10 @@ static int f2fs_zero_range(struct inode *inode, loff_t offset, loff_t len, +@@ -1593,6 +1616,10 @@ static int f2fs_zero_range(struct inode *inode, loff_t offset, loff_t len, if (ret) return ret; @@ -137,7 +134,7 @@ index 1b2c9122ce10..4baa98b69cd2 100644 pg_start = ((unsigned long long) offset) >> PAGE_SHIFT; pg_end = ((unsigned long long) offset + len) >> PAGE_SHIFT; -@@ -1721,6 +1749,8 @@ static int f2fs_insert_range(struct inode *inode, loff_t offset, loff_t len) +@@ -1724,6 +1751,8 @@ static int f2fs_insert_range(struct inode *inode, loff_t offset, loff_t len) /* avoid gc operation during block exchange */ f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); filemap_invalidate_lock(mapping); @@ -146,7 +143,7 @@ index 1b2c9122ce10..4baa98b69cd2 100644 truncate_pagecache(inode, offset); while (!ret && idx > pg_start) { -@@ -1776,6 +1806,10 @@ static int expand_inode_data(struct inode *inode, loff_t offset, +@@ -1779,6 +1808,10 @@ static int expand_inode_data(struct inode *inode, loff_t offset, if (err) return err; @@ -157,7 +154,7 @@ index 1b2c9122ce10..4baa98b69cd2 100644 f2fs_balance_fs(sbi, true); pg_start = ((unsigned long long)offset) >> PAGE_SHIFT; -@@ -4656,6 +4690,10 @@ static ssize_t f2fs_write_checks(struct kiocb *iocb, struct iov_iter *from) +@@ -4675,6 +4708,10 @@ static ssize_t f2fs_write_checks(struct kiocb *iocb, struct iov_iter *from) err = file_modified(file); if (err) return err; diff --git a/cve/CVE-2026-93235/6.1/0002-c2f7c32b2540-f2fs-fix-to-mitigate-overhead-of-f2fs-zero-post-eof.patch b/cve/CVE-2026-93235/6.1/0002-c2f7c32b2540-f2fs-fix-to-mitigate-overhead-of-f2fs-zero-post-eof.patch index ead36560..1cd5ea64 100644 --- a/cve/CVE-2026-93235/6.1/0002-c2f7c32b2540-f2fs-fix-to-mitigate-overhead-of-f2fs-zero-post-eof.patch +++ b/cve/CVE-2026-93235/6.1/0002-c2f7c32b2540-f2fs-fix-to-mitigate-overhead-of-f2fs-zero-post-eof.patch @@ -18,13 +18,12 @@ and page lookup, change as below to mitigate its overhead: Fixes: ba8dac350faf ("f2fs: fix to zero post-eof page") Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim -Signed-off-by: Igor Pecovnik --- fs/f2fs/file.c | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c -index 4baa98b69cd2..01daa78f45d5 100644 +index 01d461f151edf6..9e14e6cb6d8934 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -36,15 +36,23 @@ @@ -64,7 +63,7 @@ index 4baa98b69cd2..01daa78f45d5 100644 file_update_time(vmf->vma->vm_file); filemap_invalidate_lock_shared(inode->i_mapping); -@@ -1079,7 +1085,7 @@ int f2fs_setattr(struct user_namespace *mnt_userns, struct dentry *dentry, +@@ -1081,7 +1087,7 @@ int f2fs_setattr(struct user_namespace *mnt_userns, struct dentry *dentry, filemap_invalidate_lock(inode->i_mapping); if (attr->ia_size > old_size) @@ -73,7 +72,7 @@ index 4baa98b69cd2..01daa78f45d5 100644 truncate_setsize(inode, attr->ia_size); if (attr->ia_size <= old_size) -@@ -1198,9 +1204,7 @@ static int punch_hole(struct inode *inode, loff_t offset, loff_t len) +@@ -1200,9 +1206,7 @@ static int punch_hole(struct inode *inode, loff_t offset, loff_t len) if (ret) return ret; @@ -84,7 +83,7 @@ index 4baa98b69cd2..01daa78f45d5 100644 pg_start = ((unsigned long long) offset) >> PAGE_SHIFT; pg_end = ((unsigned long long) offset + len) >> PAGE_SHIFT; -@@ -1486,7 +1490,7 @@ static int f2fs_do_collapse(struct inode *inode, loff_t offset, loff_t len) +@@ -1488,7 +1492,7 @@ static int f2fs_do_collapse(struct inode *inode, loff_t offset, loff_t len) f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); filemap_invalidate_lock(inode->i_mapping); @@ -93,7 +92,7 @@ index 4baa98b69cd2..01daa78f45d5 100644 f2fs_lock_op(sbi); f2fs_drop_extent_tree(inode); -@@ -1614,9 +1618,7 @@ static int f2fs_zero_range(struct inode *inode, loff_t offset, loff_t len, +@@ -1616,9 +1620,7 @@ static int f2fs_zero_range(struct inode *inode, loff_t offset, loff_t len, if (ret) return ret; @@ -104,7 +103,7 @@ index 4baa98b69cd2..01daa78f45d5 100644 pg_start = ((unsigned long long) offset) >> PAGE_SHIFT; pg_end = ((unsigned long long) offset + len) >> PAGE_SHIFT; -@@ -1750,7 +1752,7 @@ static int f2fs_insert_range(struct inode *inode, loff_t offset, loff_t len) +@@ -1752,7 +1754,7 @@ static int f2fs_insert_range(struct inode *inode, loff_t offset, loff_t len) f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); filemap_invalidate_lock(mapping); @@ -113,7 +112,7 @@ index 4baa98b69cd2..01daa78f45d5 100644 truncate_pagecache(inode, offset); while (!ret && idx > pg_start) { -@@ -1806,9 +1808,7 @@ static int expand_inode_data(struct inode *inode, loff_t offset, +@@ -1808,9 +1810,7 @@ static int expand_inode_data(struct inode *inode, loff_t offset, if (err) return err; @@ -124,7 +123,7 @@ index 4baa98b69cd2..01daa78f45d5 100644 f2fs_balance_fs(sbi, true); -@@ -4691,9 +4691,8 @@ static ssize_t f2fs_write_checks(struct kiocb *iocb, struct iov_iter *from) +@@ -4709,9 +4709,8 @@ static ssize_t f2fs_write_checks(struct kiocb *iocb, struct iov_iter *from) if (err) return err; diff --git a/cve/CVE-2026-93235/6.1/0003-b2205d3cfd6c-f2fs-fix-to-off-by-one-issue-in-f2fs-zero-post-eof-p.patch b/cve/CVE-2026-93235/6.1/0003-b2205d3cfd6c-f2fs-fix-to-off-by-one-issue-in-f2fs-zero-post-eof-p.patch index 6e3b5900..e9459df1 100644 --- a/cve/CVE-2026-93235/6.1/0003-b2205d3cfd6c-f2fs-fix-to-off-by-one-issue-in-f2fs-zero-post-eof-p.patch +++ b/cve/CVE-2026-93235/6.1/0003-b2205d3cfd6c-f2fs-fix-to-off-by-one-issue-in-f2fs-zero-post-eof-p.patch @@ -15,13 +15,12 @@ Cc: stable@kernel.org Fixes: ba8dac350faf ("f2fs: fix to zero post-eof page") Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim -Signed-off-by: Igor Pecovnik --- fs/f2fs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c -index 01daa78f45d5..4c8823137f7c 100644 +index 9e14e6cb6d8934..9405f86545f34c 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -50,7 +50,7 @@ static void f2fs_zero_post_eof_page(struct inode *inode, diff --git a/cve/CVE-2026-93235/6.1/0004-5eced87b7d19-f2fs-fix-to-zero-post-eof-data-when-extending-file-s.patch b/cve/CVE-2026-93235/6.1/0004-5eced87b7d19-f2fs-fix-to-zero-post-eof-data-when-extending-file-s.patch index 6f1a8f5f..97685316 100644 --- a/cve/CVE-2026-93235/6.1/0004-5eced87b7d19-f2fs-fix-to-zero-post-eof-data-when-extending-file-s.patch +++ b/cve/CVE-2026-93235/6.1/0004-5eced87b7d19-f2fs-fix-to-zero-post-eof-data-when-extending-file-s.patch @@ -56,13 +56,12 @@ mount option. Cc: stable@kernel.org Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim -Signed-off-by: Igor Pecovnik --- fs/f2fs/file.c | 100 +++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 84 insertions(+), 16 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c -index 4c8823137f7c..4f18f566805f 100644 +index 9405f86545f34c..d4e6869243a3f8 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -36,16 +36,52 @@ @@ -152,7 +151,7 @@ index 4c8823137f7c..4f18f566805f 100644 file_update_time(vmf->vma->vm_file); filemap_invalidate_lock_shared(inode->i_mapping); -@@ -180,7 +229,7 @@ static vm_fault_t f2fs_vm_page_mkwrite(struct vm_fault *vmf) +@@ -185,7 +234,7 @@ static vm_fault_t f2fs_vm_page_mkwrite(struct vm_fault *vmf) trace_f2fs_vm_page_mkwrite(page, DATA); out_sem: filemap_invalidate_unlock_shared(inode->i_mapping); @@ -161,7 +160,7 @@ index 4c8823137f7c..4f18f566805f 100644 sb_end_pagefault(inode->i_sb); err: return block_page_mkwrite_return(err); -@@ -1084,8 +1133,12 @@ int f2fs_setattr(struct user_namespace *mnt_userns, struct dentry *dentry, +@@ -1086,8 +1135,12 @@ int f2fs_setattr(struct user_namespace *mnt_userns, struct dentry *dentry, f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); filemap_invalidate_lock(inode->i_mapping); @@ -176,7 +175,7 @@ index 4c8823137f7c..4f18f566805f 100644 truncate_setsize(inode, attr->ia_size); if (attr->ia_size <= old_size) -@@ -1094,6 +1147,7 @@ int f2fs_setattr(struct user_namespace *mnt_userns, struct dentry *dentry, +@@ -1096,6 +1149,7 @@ int f2fs_setattr(struct user_namespace *mnt_userns, struct dentry *dentry, * do not trim all blocks after i_size if target size is * larger than i_size. */ @@ -184,7 +183,7 @@ index 4c8823137f7c..4f18f566805f 100644 filemap_invalidate_unlock(inode->i_mapping); f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); if (err) -@@ -1204,7 +1258,9 @@ static int punch_hole(struct inode *inode, loff_t offset, loff_t len) +@@ -1206,7 +1260,9 @@ static int punch_hole(struct inode *inode, loff_t offset, loff_t len) if (ret) return ret; @@ -195,7 +194,7 @@ index 4c8823137f7c..4f18f566805f 100644 pg_start = ((unsigned long long) offset) >> PAGE_SHIFT; pg_end = ((unsigned long long) offset + len) >> PAGE_SHIFT; -@@ -1490,7 +1546,9 @@ static int f2fs_do_collapse(struct inode *inode, loff_t offset, loff_t len) +@@ -1492,7 +1548,9 @@ static int f2fs_do_collapse(struct inode *inode, loff_t offset, loff_t len) f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); filemap_invalidate_lock(inode->i_mapping); @@ -206,7 +205,7 @@ index 4c8823137f7c..4f18f566805f 100644 f2fs_lock_op(sbi); f2fs_drop_extent_tree(inode); -@@ -1498,6 +1556,7 @@ static int f2fs_do_collapse(struct inode *inode, loff_t offset, loff_t len) +@@ -1500,6 +1558,7 @@ static int f2fs_do_collapse(struct inode *inode, loff_t offset, loff_t len) ret = __exchange_data_block(inode, inode, end, start, nrpages - end, true); f2fs_unlock_op(sbi); @@ -214,7 +213,7 @@ index 4c8823137f7c..4f18f566805f 100644 filemap_invalidate_unlock(inode->i_mapping); f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); return ret; -@@ -1618,7 +1677,9 @@ static int f2fs_zero_range(struct inode *inode, loff_t offset, loff_t len, +@@ -1620,7 +1679,9 @@ static int f2fs_zero_range(struct inode *inode, loff_t offset, loff_t len, if (ret) return ret; @@ -225,7 +224,7 @@ index 4c8823137f7c..4f18f566805f 100644 pg_start = ((unsigned long long) offset) >> PAGE_SHIFT; pg_end = ((unsigned long long) offset + len) >> PAGE_SHIFT; -@@ -1752,7 +1813,9 @@ static int f2fs_insert_range(struct inode *inode, loff_t offset, loff_t len) +@@ -1754,7 +1815,9 @@ static int f2fs_insert_range(struct inode *inode, loff_t offset, loff_t len) f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); filemap_invalidate_lock(mapping); @@ -236,7 +235,7 @@ index 4c8823137f7c..4f18f566805f 100644 truncate_pagecache(inode, offset); while (!ret && idx > pg_start) { -@@ -1768,6 +1831,7 @@ static int f2fs_insert_range(struct inode *inode, loff_t offset, loff_t len) +@@ -1770,6 +1833,7 @@ static int f2fs_insert_range(struct inode *inode, loff_t offset, loff_t len) idx + delta, nr, false); f2fs_unlock_op(sbi); } @@ -244,7 +243,7 @@ index 4c8823137f7c..4f18f566805f 100644 filemap_invalidate_unlock(mapping); f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); -@@ -1808,7 +1872,9 @@ static int expand_inode_data(struct inode *inode, loff_t offset, +@@ -1810,7 +1874,9 @@ static int expand_inode_data(struct inode *inode, loff_t offset, if (err) return err; @@ -255,7 +254,7 @@ index 4c8823137f7c..4f18f566805f 100644 f2fs_balance_fs(sbi, true); -@@ -4691,8 +4757,10 @@ static ssize_t f2fs_write_checks(struct kiocb *iocb, struct iov_iter *from) +@@ -4709,8 +4775,10 @@ static ssize_t f2fs_write_checks(struct kiocb *iocb, struct iov_iter *from) if (err) return err; diff --git a/cve/CVE-2026-93235/6.1/0005-0b2cd5092139-f2fs-fix-to-zero-data-after-eof-for-compressed-file.patch b/cve/CVE-2026-93235/6.1/0005-0b2cd5092139-f2fs-fix-to-zero-data-after-eof-for-compressed-file.patch index c3de2579..2ee32d06 100644 --- a/cve/CVE-2026-93235/6.1/0005-0b2cd5092139-f2fs-fix-to-zero-data-after-eof-for-compressed-file.patch +++ b/cve/CVE-2026-93235/6.1/0005-0b2cd5092139-f2fs-fix-to-zero-data-after-eof-for-compressed-file.patch @@ -90,13 +90,12 @@ Fixes: 3265d3db1f16 ("f2fs: support partial truncation on compressed inode") Reported-by: Jan Prusakowski Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim -Signed-off-by: Igor Pecovnik --- fs/f2fs/compress.c | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c -index d5479ff37e84..34ffdebcaba4 100644 +index c7350e60e63f32..233070912b85eb 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -1214,19 +1214,28 @@ int f2fs_truncate_partial_cluster(struct inode *inode, u64 from, bool lock) diff --git a/cve/CVE-2026-93235/6.1/base b/cve/CVE-2026-93235/6.1/base index 433951bd..5c0fc3d6 100644 --- a/cve/CVE-2026-93235/6.1/base +++ b/cve/CVE-2026-93235/6.1/base @@ -1 +1 @@ -08889840163ebcdb7e24bf7ec311bc2e6fc3aaea +1ca1436ccc68275d0b43b6a730b3940fcc46b7c2 diff --git a/cve/CVE-2026-93235/6.1/fasttrack.json b/cve/CVE-2026-93235/6.1/fasttrack.json index aec4b7e9..8e717f1b 100644 --- a/cve/CVE-2026-93235/6.1/fasttrack.json +++ b/cve/CVE-2026-93235/6.1/fasttrack.json @@ -1,13 +1,13 @@ { "series": "6.1", "base": { - "commit": "08889840163ebcdb7e24bf7ec311bc2e6fc3aaea", - "version": "6.1.191" + "commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2", + "version": "6.1.193" }, "incident": "CVE-2026-93235", "outcome": "patched-needs-review", "fixed_in": null, - "made": "2026-11-02T02:06:51Z", + "made": "2026-11-29T04:01:39Z", "patches": [ { "series": "6.1", @@ -24,7 +24,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", @@ -41,7 +43,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", @@ -58,7 +62,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", @@ -75,7 +81,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false }, { "series": "6.1", @@ -92,7 +100,9 @@ "files": [], "prerequisites": [], "build_log": "", - "backport": "" + "backport": "", + "bug_commits": [], + "unaffected": false } ] } diff --git a/cve/CVE-2026-93235/6.1/series.conf b/cve/CVE-2026-93235/6.1/series.conf index 0aa29b74..9804a1a1 100644 --- a/cve/CVE-2026-93235/6.1/series.conf +++ b/cve/CVE-2026-93235/6.1/series.conf @@ -1,6 +1,6 @@ # 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-ba8dac350faf-f2fs-fix-to-zero-post-eof-page.patch 0002-c2f7c32b2540-f2fs-fix-to-mitigate-overhead-of-f2fs-zero-post-eof.patch diff --git a/cve/CVE-2026-98539/6.1/0001-1abd643f3783-fs-ntfs3-use-d-instantiate-new-in-ntfs-create-inode.patch b/cve/CVE-2026-98539/6.1/0001-1abd643f3783-fs-ntfs3-use-d-instantiate-new-in-ntfs-create-inode.patch deleted file mode 100644 index bdc44aa4..00000000 --- a/cve/CVE-2026-98539/6.1/0001-1abd643f3783-fs-ntfs3-use-d-instantiate-new-in-ntfs-create-inode.patch +++ /dev/null @@ -1,204 +0,0 @@ -From mboxrd@z Thu Jan 1 00:00:00 1970 -X-Fasttrack-Source: stable-list -X-Fasttrack-Upstream: c935c66878867dc87c36c36b21d35d7e7f08adec -X-Fasttrack-CVE: CVE-2026-98539 -Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) - (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) - (No client certificate requested) - by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0920A52E05C - for ; Tue, 29 Sep 2026 14:12:54 +0000 (UTC) -Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 -ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; - t=1790691176; cv=none; b=OL5/TSGaEW7qbQgrmTHlq24hQpCBi81xsEkKoTXbeCXqxyk9LCigME2y3qv+XiJDIw1ZYfgZUaupHSF1R5lkEi17+k0dC1yJsFLkIy/NQjBVov1lXEQMC319Po8tMWmg0Dhf4c2mLds6rBfdWa1o8U6FtMoNW0OAdk+IHi5ksLE= -ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; - s=arc-20240116; t=1790691176; c=relaxed/simple; - bh=SgQQ0gPMif6x1r6ub0aLqCsGo/vJvRsye1n4i1NoWAg=; - h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: - MIME-Version; b=GOCNKpf0L7LQrHNbrsq63ZhN9sZWtYkZGCycj7h2wkAHvKy55BOKy3gHUXSckVRx7TnJC8ihccUpzZx838AfGbbDv9VvLAOuGdRr1dsda7PWXYjhADbyyI21rnqIrzzHBDttTM9a3MqrfugSF8f8Lz8o/vNs2sLlkAOUgAS/csk= -ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UpSjK33X; arc=none smtp.client-ip=100.103.45.18 -Authentication-Results: smtp.subspace.kernel.org; - dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UpSjK33X" -Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EDED1F000FF; - Tue, 29 Sep 2026 14:12:54 +0000 (UTC) -DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; - s=k20260515; t=1790691174; - bh=6dvMAfZRlUukoC5hC2zjkQXb38Dg7rD7Wg9bXUS9oNM=; - h=From:To:Cc:Subject:Date:In-Reply-To:References; - b=UpSjK33XfNVyJXeSbuu2KhvUS3icLsUKJio7qrPVp8r0sKWqnCkjOkfiu5iHR22V2 - +VvQMvrWyQCfqsCHIVQzUzNrvrTA9QItcsUszZPIqvmAtiJSKSMjQMGTus1/POXDaK - HKXZQilQ5SK8D4a+nJ8thNUxXecfXYx59UAZ8kAX2bOS3cyD12OqrjiBetSCJF2iVH - GaYiWHkbiM6rnX9oZ8SprqkpmIaOC1D4zT5tsgnuU5I1mU6TFbZ8jRiFHYgCgGvxh/ - mwsGo++4eERcStcEFCbW0Vz4XC2Qnua/nmzd3hwQXZ1UkbgPS02canT8mqdkJ+H46Z - OwVh8P83k7iLg== -From: Sasha Levin -To: stable@vger.kernel.org -Cc: Konstantin Komarov , - Al Viro , - Sasha Levin -Subject: [PATCH 6.1.y 1/2] fs/ntfs3: Redesign ntfs_create_inode to return error code instead of inode -Date: Tue, 29 Sep 2026 10:12:51 -0400 -Message-ID: <20260929141252.3538406-1-sashal@kernel.org> -X-Mailer: git-send-email 2.53.0 -In-Reply-To: <2026092905-banter-curable-1b52@gregkh> -References: <2026092905-banter-curable-1b52@gregkh> -Precedence: bulk -X-Mailing-List: stable@vger.kernel.org -List-Id: -List-Subscribe: -List-Unsubscribe: -MIME-Version: 1.0 -Content-Transfer-Encoding: 8bit - -From: Konstantin Komarov - -[ Upstream commit c935c66878867dc87c36c36b21d35d7e7f08adec ] - -As Al Viro correctly pointed out, there is no need to return -the whole structure to check the error. -https://lore.kernel.org/ntfs3/20240322023515.GK538574@ZenIV/ - -Acked-by: Al Viro -Signed-off-by: Konstantin Komarov - -[Stable 6.1 dependency adaptation: retain the user_namespace API and -existing directory-lock lifetime. Return an integer status from -ntfs_create_inode and pass it through all four callers. Omit the -unrelated switch to resident data for newly created regular files. -The success-only unlock_new_inode epilogue allows target -1abd643f3783ea8f8e273c18697ff0413aa92dc7 to apply cleanly.] - -Stable-dep-of: 1abd643f3783 ("fs/ntfs3: use d_instantiate_new() in ntfs_create_inode() and murder syzbot's "WARNING in do_new_mount" saga") -Signed-off-by: Sasha Levin ---- - fs/ntfs3/inode.c | 18 ++++++++---------- - fs/ntfs3/namei.c | 31 ++++++++----------------------- - fs/ntfs3/ntfs_fs.h | 9 ++++----- - 3 files changed, 20 insertions(+), 38 deletions(-) - -diff --git a/fs/ntfs3/inode.c b/fs/ntfs3/inode.c -index b8ac0943e9325..98f70c721052b 100644 ---- a/fs/ntfs3/inode.c -+++ b/fs/ntfs3/inode.c -@@ -1198,11 +1198,10 @@ ntfs_create_reparse_buffer(struct ntfs_sb_info *sbi, const char *symname, - return ERR_PTR(err); - } - --struct inode *ntfs_create_inode(struct user_namespace *mnt_userns, -- struct inode *dir, struct dentry *dentry, -- const struct cpu_str *uni, umode_t mode, -- dev_t dev, const char *symname, u32 size, -- struct ntfs_fnd *fnd) -+int ntfs_create_inode(struct user_namespace *mnt_userns, struct inode *dir, -+ struct dentry *dentry, const struct cpu_str *uni, -+ umode_t mode, dev_t dev, const char *symname, u32 size, -+ struct ntfs_fnd *fnd) - { - int err; - struct super_block *sb = dir->i_sb; -@@ -1680,14 +1679,13 @@ struct inode *ntfs_create_inode(struct user_namespace *mnt_userns, - kfree(rp); - - out1: -- if (err) { -+ if (err) - ni_unlock(dir_ni); -- return ERR_PTR(err); -- } - -- unlock_new_inode(inode); -+ if (!err) -+ unlock_new_inode(inode); - -- return inode; -+ return err; - } - - int ntfs_link_inode(struct inode *inode, struct dentry *dentry) -diff --git a/fs/ntfs3/namei.c b/fs/ntfs3/namei.c -index 7b7634b38eea8..c5b15f70e5f02 100644 ---- a/fs/ntfs3/namei.c -+++ b/fs/ntfs3/namei.c -@@ -105,12 +105,8 @@ static struct dentry *ntfs_lookup(struct inode *dir, struct dentry *dentry, - static int ntfs_create(struct user_namespace *mnt_userns, struct inode *dir, - struct dentry *dentry, umode_t mode, bool excl) - { -- struct inode *inode; -- -- inode = ntfs_create_inode(mnt_userns, dir, dentry, NULL, S_IFREG | mode, -- 0, NULL, 0, NULL); -- -- return IS_ERR(inode) ? PTR_ERR(inode) : 0; -+ return ntfs_create_inode(mnt_userns, dir, dentry, NULL, S_IFREG | mode, -+ 0, NULL, 0, NULL); - } - - /* -@@ -121,12 +117,8 @@ static int ntfs_create(struct user_namespace *mnt_userns, struct inode *dir, - static int ntfs_mknod(struct user_namespace *mnt_userns, struct inode *dir, - struct dentry *dentry, umode_t mode, dev_t rdev) - { -- struct inode *inode; -- -- inode = ntfs_create_inode(mnt_userns, dir, dentry, NULL, mode, rdev, -- NULL, 0, NULL); -- -- return IS_ERR(inode) ? PTR_ERR(inode) : 0; -+ return ntfs_create_inode(mnt_userns, dir, dentry, NULL, mode, rdev, -+ NULL, 0, NULL); - } - - /* -@@ -195,12 +187,9 @@ static int ntfs_symlink(struct user_namespace *mnt_userns, struct inode *dir, - struct dentry *dentry, const char *symname) - { - u32 size = strlen(symname); -- struct inode *inode; -- -- inode = ntfs_create_inode(mnt_userns, dir, dentry, NULL, S_IFLNK | 0777, -- 0, symname, size, NULL); - -- return IS_ERR(inode) ? PTR_ERR(inode) : 0; -+ return ntfs_create_inode(mnt_userns, dir, dentry, NULL, S_IFLNK | 0777, -+ 0, symname, size, NULL); - } - - /* -@@ -209,12 +198,8 @@ static int ntfs_symlink(struct user_namespace *mnt_userns, struct inode *dir, - static int ntfs_mkdir(struct user_namespace *mnt_userns, struct inode *dir, - struct dentry *dentry, umode_t mode) - { -- struct inode *inode; -- -- inode = ntfs_create_inode(mnt_userns, dir, dentry, NULL, S_IFDIR | mode, -- 0, NULL, 0, NULL); -- -- return IS_ERR(inode) ? PTR_ERR(inode) : 0; -+ return ntfs_create_inode(mnt_userns, dir, dentry, NULL, S_IFDIR | mode, -+ 0, NULL, 0, NULL); - } - - /* -diff --git a/fs/ntfs3/ntfs_fs.h b/fs/ntfs3/ntfs_fs.h -index 482958c016444..856fe8673fe71 100644 ---- a/fs/ntfs3/ntfs_fs.h -+++ b/fs/ntfs3/ntfs_fs.h -@@ -708,11 +708,10 @@ int ntfs_sync_inode(struct inode *inode); - int ntfs_flush_inodes(struct super_block *sb, struct inode *i1, - struct inode *i2); - int inode_write_data(struct inode *inode, const void *data, size_t bytes); --struct inode *ntfs_create_inode(struct user_namespace *mnt_userns, -- struct inode *dir, struct dentry *dentry, -- const struct cpu_str *uni, umode_t mode, -- dev_t dev, const char *symname, u32 size, -- struct ntfs_fnd *fnd); -+int ntfs_create_inode(struct user_namespace *mnt_userns, struct inode *dir, -+ struct dentry *dentry, const struct cpu_str *uni, -+ umode_t mode, dev_t dev, const char *symname, u32 size, -+ struct ntfs_fnd *fnd); - int ntfs_link_inode(struct inode *inode, struct dentry *dentry); - int ntfs_unlink_inode(struct inode *dir, const struct dentry *dentry); - void ntfs_evict_inode(struct inode *inode); --- -2.53.0 - - diff --git a/cve/CVE-2026-98539/6.1/0002-1abd643f3783-fs-ntfs3-use-d-instantiate-new-in-ntfs-create-inode.patch b/cve/CVE-2026-98539/6.1/0002-1abd643f3783-fs-ntfs3-use-d-instantiate-new-in-ntfs-create-inode.patch deleted file mode 100644 index 9e9b51a2..00000000 --- a/cve/CVE-2026-98539/6.1/0002-1abd643f3783-fs-ntfs3-use-d-instantiate-new-in-ntfs-create-inode.patch +++ /dev/null @@ -1,117 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -X-Fasttrack-Source: claude -X-Fasttrack-Upstream: 1abd643f3783ea8f8e273c18697ff0413aa92dc7 -X-Fasttrack-CVE: CVE-2026-98539 -From: Christian Brauner -Date: Wed, 9 Sep 2026 11:03:18 +0200 -Subject: [PATCH] fs/ntfs3: use d_instantiate_new() in ntfs_create_inode() and - murder syzbot's "WARNING in do_new_mount" saga - -commit 1abd643f3783ea8f8e273c18697ff0413aa92dc7 upstream. - -ntfs_create_inode() creates a new inode via ntfs_new_inode(). It hashes -it with insert_inode_locked() and so it's marked as I_NEW until -unlock_new_inode(). - -ntfs 3 calls d_instantiate() in between though... Since the dentry was -already hashed by the lookup before the create any path walk finds it -without touching the parent's i_rwsem and so can lock the inode. - -If the inode is a directory unlock_new_inode() calls -lockdep_annotate_inode_mutex_key() and marks i_rwsem with the -i_mutex_dir_key class. - -That resets the count and the owner of a lock somebody else may already -hold by now... - -syzbot has been spamming us with the same godforsaken bug - - "WARNING in do_new_mount" - -since 2023. I can't take it anymore so I went looking. Afaict, syzbot's -executor chdirs into a freshly mounted ntfs3 image, creates a -directory and then mounts some pseudofs on it. Everytime the mkdir() -takes longer than syzbot waits mount() runs concurrently: - - mkdir("./sys") mount(NULL, "./sys", "sysfs") - ntfs_create_inode() - d_instantiate() - user_path_at() finds the dentry - do_lock_mount() - inode_lock(inode) - namespace_lock() - unlock_new_inode() - lockdep_annotate_inode_mutex_key() - init_rwsem(&inode->i_rwsem) - unlock_mount() - inode_unlock(inode) - -The mount side then releases a lock that according to the rwsem nobody -holds: - - DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && ...): - count = 0x0, magic = 0xffff888043a854e8, owner = 0x0, - curr 0xffff888000244880, list empty - WARNING: CPU: 0 PID: 5346 at kernel/locking/rwsem.c:1368 __up_write - Call Trace: - inode_unlock include/linux/fs.h:877 [inline] - unlock_mount fs/namespace.c:2892 [inline] - do_new_mount_fc fs/namespace.c:3828 [inline] - do_new_mount+0x777/0xa40 fs/namespace.c:3887 - -On PREEMPT_RT the same thing shows up as - - DEBUG_LOCKS_WARN_ON(rt_mutex_owner(lock) != current) - WARNING: kernel/locking/rtmutex_common.h:193 at rt_mutex_slowunlock - -The up_write() underflows the reset count. A following inode_lock() on -that directory then never returns. A path walk into the new directory -racing with the mkdir() corrupts the lock the same way via -inode_lock_shared() in lookup_slow(). - -Switch to d_instantiate_new() and drop the trailing unlock_new_inode(). -All error paths bail out before that point with I_NEW still set and -keep using discard_new_inode(). - -May we never see this fscking bug report again. - -Link: https://patch.msgid.link/20260909-work-ntfs3-d_instantiate_new-v1-1-2db697162ce8@kernel.org -Fixes: 82cae269cfa9 ("fs/ntfs3: Add initialization of super block") -Reviewed-by: Jan Kara -Cc: stable@vger.kernel.org # v5.15+ -Reported-by: syzbot+2a13ad6914e6fcec716c@syzkaller.appspotmail.com -Closes: https://lore.kernel.org/6a9beced.a5e650b3.26d8a.000b.GAE@google.com -Signed-off-by: Christian Brauner (Amutable) -[ Backport: Context only: in 6.1 d_instantiate() follows ntfs_sb_write_run(), and out1 tests err before ni_unlock(). ] -Signed-off-by: Igor Pecovnik ---- - fs/ntfs3/inode.c | 7 ++----- - 1 file changed, 2 insertions(+), 5 deletions(-) - -diff --git a/fs/ntfs3/inode.c b/fs/ntfs3/inode.c -index c9efc94426f8..d6caf265a56d 100644 ---- a/fs/ntfs3/inode.c -+++ b/fs/ntfs3/inode.c -@@ -1635,10 +1635,10 @@ int ntfs_create_inode(struct user_namespace *mnt_userns, struct inode *dir, - } - - /* -- * Call 'd_instantiate' after inode->i_op is set -+ * Call 'd_instantiate_new' after inode->i_op is set - * but before finish_open. - */ -- d_instantiate(dentry, inode); -+ d_instantiate_new(dentry, inode); - - ntfs_save_wsl_perm(inode); - mark_inode_dirty(dir); -@@ -1687,9 +1687,6 @@ int ntfs_create_inode(struct user_namespace *mnt_userns, struct inode *dir, - if (err) - ni_unlock(dir_ni); - -- if (!err) -- unlock_new_inode(inode); -- - return err; - } - diff --git a/cve/CVE-2026-98539/6.1/base b/cve/CVE-2026-98539/6.1/base deleted file mode 100644 index 433951bd..00000000 --- a/cve/CVE-2026-98539/6.1/base +++ /dev/null @@ -1 +0,0 @@ -08889840163ebcdb7e24bf7ec311bc2e6fc3aaea diff --git a/cve/CVE-2026-98539/6.1/fasttrack.json b/cve/CVE-2026-98539/6.1/fasttrack.json deleted file mode 100644 index 29212a1d..00000000 --- a/cve/CVE-2026-98539/6.1/fasttrack.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "series": "6.1", - "base": { - "commit": "08889840163ebcdb7e24bf7ec311bc2e6fc3aaea", - "version": "6.1.191" - }, - "incident": "CVE-2026-98539", - "outcome": "patched", - "fixed_in": null, - "made": null, - "patches": [ - { - "series": "6.1", - "upstream": "c935c66878867dc87c36c36b21d35d7e7f08adec", - "subject": "fs/ntfs3: Redesign ntfs_create_inode to return error code instead of inode", - "source": "stable-list", - "cves": [ - "CVE-2026-98539" - ], - "kev": false, - "verdict": "accepted", - "reason": "backport posted to stable@vger.kernel.org", - "filename": "0001-1abd643f3783-fs-ntfs3-use-d-instantiate-new-in-ntfs-create-inode.patch", - "files": [], - "prerequisites": [], - "build_log": "", - "backport": "" - }, - { - "series": "6.1", - "upstream": "1abd643f3783ea8f8e273c18697ff0413aa92dc7", - "subject": "fs/ntfs3: use d_instantiate_new() in ntfs_create_inode() and", - "source": "claude", - "cves": [ - "CVE-2026-98539" - ], - "kev": false, - "verdict": "claude-backport", - "reason": "backport posted to stable@vger.kernel.org", - "filename": "0002-1abd643f3783-fs-ntfs3-use-d-instantiate-new-in-ntfs-create-inode.patch", - "files": [], - "prerequisites": [], - "build_log": "", - "backport": "" - } - ] -} diff --git a/cve/CVE-2026-98539/6.1/series.conf b/cve/CVE-2026-98539/6.1/series.conf deleted file mode 100644 index a66df688..00000000 --- a/cve/CVE-2026-98539/6.1/series.conf +++ /dev/null @@ -1,6 +0,0 @@ -# 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). - -0001-1abd643f3783-fs-ntfs3-use-d-instantiate-new-in-ntfs-create-inode.patch -0002-1abd643f3783-fs-ntfs3-use-d-instantiate-new-in-ntfs-create-inode.patch diff --git a/cve/CVE-2026-98863/6.1/0001-10180a277549-kvm-x86-re-pend-get-nested-state-pages-if-getting-sa.patch b/cve/CVE-2026-98863/6.1/0001-10180a277549-kvm-x86-re-pend-get-nested-state-pages-if-getting-sa.patch deleted file mode 100644 index 05dfffc4..00000000 --- a/cve/CVE-2026-98863/6.1/0001-10180a277549-kvm-x86-re-pend-get-nested-state-pages-if-getting-sa.patch +++ /dev/null @@ -1,214 +0,0 @@ -From mboxrd@z Thu Jan 1 00:00:00 1970 -X-Fasttrack-Source: stable-list -X-Fasttrack-Upstream: b65699be2c606d2687593516d93e66d16a713b61 -X-Fasttrack-CVE: CVE-2026-98863 -Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) - (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) - (No client certificate requested) - by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FA953769FF - for ; Wed, 30 Sep 2026 21:25:07 +0000 (UTC) -Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 -ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; - t=1790803509; cv=none; b=j2l1Glj4tfJqNTfAsBCZCUTpmqSNwpWZhEIOm/iBR8HoTiDKlkn+uV5GCbhoQzDhJ2O4zS+fcFM20nI81r3CYDMeBXk5P6+i+7ckvW+CoCNkmFqdLLN6EKvEGv0k+UfwRBFYBqWTJ/BCoJePJylvnPrQuc5RWf0rTZFfrc4giXA= -ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; - s=arc-20240116; t=1790803509; c=relaxed/simple; - bh=eL1XyKnOjHtw5k0BfrK0G8yq6PsdfpMlLsRqwkMbIlQ=; - h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: - MIME-Version; b=VRpIqnrhmq/FxCjFkhLYISqzcp+NOc9e1qPG4hUxx3tIcWC6CMou7AqgiyfRjsvs+x+ZDm0Z3mqHDC8T6AdXIL6jzY1Ll4pguBat8VcfanqPOIPXLMh3xpdmsWHwYe0zv+h/SCGtqCyFyNwRwaH0pcM3wHVzUCcV4/CFuMNjj24= -ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZZQVqSHQ; arc=none smtp.client-ip=100.103.45.18 -Authentication-Results: smtp.subspace.kernel.org; - dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZZQVqSHQ" -Received: by smtp.kernel.org (Postfix) with ESMTPSA id 141C41F000FF; - Wed, 30 Sep 2026 21:25:06 +0000 (UTC) -DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; - s=k20260515; t=1790803507; - bh=kfMv9NqFU14fGG0JvhRGwpTgL8JASX/dWdyB8cvtJbE=; - h=From:To:Cc:Subject:Date:In-Reply-To:References; - b=ZZQVqSHQ5Y63HC7wzgR9sEGz/ryNMoxk12HAgdNMcvc/k03lnVVpkfoVN38fqOIog - Q9BnD3/azhdkmpk6obkU61PC9x7RrF+xNhuo8mIFosOEzPAIUVm3Oy17Ee+SXaUKAR - Fas7+F4CXYsff0rWmSUw8NpYR/efEKtupb4VIw+BlWZhaKR9fBz9OQEZuVpbL7oHvM - mK40WIf1i7B4CSMh2+1BBWLtQUp3xeFDRi+1T7xiiY6NA4FB8Ja9YlMNnsStHYwBOg - 7Qv2hEXFWYc746hP+ewH0K0qMJIC1T+00Sy+GYOVlstqqgE6fiU6pLfPgjqIP3npNQ - vVDbUFJBMbJkg== -From: Sasha Levin -To: stable@vger.kernel.org -Cc: Sean Christopherson , - Vitaly Kuznetsov , - Sasha Levin -Subject: [PATCH 6.1.y 1/2] KVM: x86: Reject nested CAP enablement if nested virtualization is disabled -Date: Wed, 30 Sep 2026 17:25:04 -0400 -Message-ID: <20260930212505.3176940-1-sashal@kernel.org> -X-Mailer: git-send-email 2.53.0 -In-Reply-To: <2026092946-laxative-rival-2080@gregkh> -References: <2026092946-laxative-rival-2080@gregkh> -Precedence: bulk -X-Mailing-List: stable@vger.kernel.org -List-Id: -List-Subscribe: -List-Unsubscribe: -MIME-Version: 1.0 -Content-Transfer-Encoding: 8bit - -From: Sean Christopherson - -[ Upstream commit b65699be2c606d2687593516d93e66d16a713b61 ] - -Add a flag to explicitly track if nested virtualization is enabled, and use -it enumerate that various nested CAPs are unsupported, and to reject -enablement of said CAPs. When the nested ops hooks were moved to their -own structure, KVM's NULL-by-default behavior was deliberately dropped, -with the changelog asserting that all was well. That wasn't quite true; -there is no danger to KVM, but now KVM is over-reporting support for -KVM_CAP_NESTED_STATE and KVM_CAP_HYPERV_ENLIGHTENED_VMCS. - -Fixes: 33b22172452f ("KVM: x86: move nested-related kvm_x86_ops to a separate struct") -Reviewed-by: Vitaly Kuznetsov -Link: https://patch.msgid.link/20260630202828.440724-2-seanjc@google.com -Signed-off-by: Sean Christopherson - -Backport notes for 6.1: -Keep the capability handler's existing function-scope declarations and -add the nested-enabled check without importing the newer case-local block. - -Provide kvm_nested_call() as a macro around the existing nested_ops -function pointer and use it for get_nested_state_pages(). Match the -upstream blank line before that request handler so commit -10180a277549339020b08000206092c07e0bff5a applies unchanged. This preserves -the current dispatch behavior without importing the static-call conversion -or adding functions. The request re-pending fix remains in the target. - -Stable-dep-of: 10180a277549 ("KVM: x86: Re-pend GET_NESTED_STATE_PAGES if getting said pages fails") -Signed-off-by: Sasha Levin ---- - arch/x86/include/asm/kvm_host.h | 4 ++++ - arch/x86/kvm/hyperv.c | 3 ++- - arch/x86/kvm/svm/svm.c | 1 + - arch/x86/kvm/vmx/vmx.c | 1 + - arch/x86/kvm/x86.c | 15 +++++++++------ - 5 files changed, 17 insertions(+), 7 deletions(-) - -diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h -index 31395c43416dd..a4199606edfd0 100644 ---- a/arch/x86/include/asm/kvm_host.h -+++ b/arch/x86/include/asm/kvm_host.h -@@ -1643,6 +1643,8 @@ struct kvm_x86_ops { - }; - - struct kvm_x86_nested_ops { -+ bool enabled; -+ - void (*leave_nested)(struct kvm_vcpu *vcpu); - bool (*is_exception_vmexit)(struct kvm_vcpu *vcpu, u8 vector, - u32 error_code); -@@ -1693,6 +1695,8 @@ extern struct kvm_x86_ops kvm_x86_ops; - #define KVM_X86_OP_OPTIONAL_RET0 KVM_X86_OP - #include - -+#define kvm_nested_call(func) (kvm_x86_ops.nested_ops->func) -+ - int kvm_x86_vendor_init(struct kvm_x86_init_ops *ops); - void kvm_x86_vendor_exit(void); - -diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c -index bddeb5a28b23f..528da4e0f7e05 100644 ---- a/arch/x86/kvm/hyperv.c -+++ b/arch/x86/kvm/hyperv.c -@@ -2457,7 +2457,8 @@ int kvm_get_hv_cpuid(struct kvm_vcpu *vcpu, struct kvm_cpuid2 *cpuid, - }; - int i, nent = ARRAY_SIZE(cpuid_entries); - -- if (kvm_x86_ops.nested_ops->get_evmcs_version) -+ if (kvm_x86_ops.nested_ops->enabled && -+ kvm_x86_ops.nested_ops->get_evmcs_version) - evmcs_ver = kvm_x86_ops.nested_ops->get_evmcs_version(vcpu); - - if (cpuid->nent < nent) -diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c -index 88979fefaa284..b3fb174e11523 100644 ---- a/arch/x86/kvm/svm/svm.c -+++ b/arch/x86/kvm/svm/svm.c -@@ -5110,6 +5110,7 @@ static __init int svm_hardware_setup(void) - printk(KERN_INFO "kvm: Nested Virtualization enabled\n"); - kvm_enable_efer_bits(EFER_SVME | EFER_LMSLE); - } -+ svm_nested_ops.enabled = nested; - - /* - * KVM's MMU doesn't support using 2-level paging for itself, and thus -diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c -index cc10bde20d451..557b1ab8ea358 100644 ---- a/arch/x86/kvm/vmx/vmx.c -+++ b/arch/x86/kvm/vmx/vmx.c -@@ -8549,6 +8549,7 @@ static __init int hardware_setup(void) - if (r) - return r; - } -+ vmx_nested_ops.enabled = nested; - - vmx_set_cpu_caps(); - -diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c -index ffbf532baf7cd..d5686a1ee3287 100644 ---- a/arch/x86/kvm/x86.c -+++ b/arch/x86/kvm/x86.c -@@ -4516,14 +4516,15 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) - r = KVM_X2APIC_API_VALID_FLAGS; - break; - case KVM_CAP_NESTED_STATE: -- r = kvm_x86_ops.nested_ops->get_state ? -+ r = kvm_x86_ops.nested_ops->enabled ? - kvm_x86_ops.nested_ops->get_state(NULL, NULL, 0) : 0; - break; - case KVM_CAP_HYPERV_DIRECT_TLBFLUSH: - r = kvm_x86_ops.enable_direct_tlbflush != NULL; - break; - case KVM_CAP_HYPERV_ENLIGHTENED_VMCS: -- r = kvm_x86_ops.nested_ops->enable_evmcs != NULL; -+ r = kvm_x86_ops.nested_ops->enabled && -+ kvm_x86_ops.nested_ops->enable_evmcs != NULL; - break; - case KVM_CAP_SMALLER_MAXPHYADDR: - r = (int) allow_smaller_maxphyaddr; -@@ -5544,7 +5545,8 @@ static int kvm_vcpu_ioctl_enable_cap(struct kvm_vcpu *vcpu, - return kvm_hv_activate_synic(vcpu, cap->cap == - KVM_CAP_HYPERV_SYNIC2); - case KVM_CAP_HYPERV_ENLIGHTENED_VMCS: -- if (!kvm_x86_ops.nested_ops->enable_evmcs) -+ if (!kvm_x86_ops.nested_ops->enabled || -+ !kvm_x86_ops.nested_ops->enable_evmcs) - return -ENOTTY; - r = kvm_x86_ops.nested_ops->enable_evmcs(vcpu, &vmcs_version); - if (!r) { -@@ -5899,7 +5901,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp, - u32 user_data_size; - - r = -EINVAL; -- if (!kvm_x86_ops.nested_ops->get_state) -+ if (!kvm_x86_ops.nested_ops->enabled) - break; - - BUILD_BUG_ON(sizeof(user_data_size) != sizeof(user_kvm_nested_state->size)); -@@ -5929,7 +5931,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp, - int idx; - - r = -EINVAL; -- if (!kvm_x86_ops.nested_ops->set_state) -+ if (!kvm_x86_ops.nested_ops->enabled) - break; - - r = -EFAULT; -@@ -10654,8 +10656,9 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu) - r = -EIO; - goto out; - } -+ - if (kvm_check_request(KVM_REQ_GET_NESTED_STATE_PAGES, vcpu)) { -- if (unlikely(!kvm_x86_ops.nested_ops->get_nested_state_pages(vcpu))) { -+ if (unlikely(!kvm_nested_call(get_nested_state_pages)(vcpu))) { - r = 0; - goto out; - } --- -2.53.0 - - diff --git a/cve/CVE-2026-98863/6.1/0002-10180a277549-kvm-x86-re-pend-get-nested-state-pages-if-getting-sa.patch b/cve/CVE-2026-98863/6.1/0002-10180a277549-kvm-x86-re-pend-get-nested-state-pages-if-getting-sa.patch deleted file mode 100644 index 5c859502..00000000 --- a/cve/CVE-2026-98863/6.1/0002-10180a277549-kvm-x86-re-pend-get-nested-state-pages-if-getting-sa.patch +++ /dev/null @@ -1,46 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -X-Fasttrack-Source: claude -X-Fasttrack-Upstream: 10180a277549339020b08000206092c07e0bff5a -X-Fasttrack-CVE: CVE-2026-98863 -From: Sean Christopherson -Date: Mon, 21 Sep 2026 14:16:07 -0700 -Subject: [PATCH] KVM: x86: Re-pend GET_NESTED_STATE_PAGES if getting said - pages fails - -commit 10180a277549339020b08000206092c07e0bff5a upstream. - -Re-pend GET_NESTED_STATE_PAGES before exiting to userspace if getting the -nested pages fails in the KVM_RUN path. If userspace re-runs the vCPU, and -vmcs02 holds valid PFNs from the *previous* run of L2, then KVM could -re-enter L2 with stale, unpinned PFNs mapped into e.g. the vAPIC page. - -Note, both SVM and VMX (as of commit 11722439fb20 ("KVM: nVMX: Ensure -KVM_REQ_GET_NESTED_STATE_PAGES is cleared on VM-Exit") ensure the request -is cleared on VM-Exit (including the "forced" case), i.e. there is no risk -of double-mapping due to emulated VMLAUNCH/VMRESUME/VMRUN *and* the request -trying to map the nested pages. - -Fixes: 671ddc700fd0 ("KVM: nVMX: Don't leak L1 MMIO regions to L2") -Cc: stable@vger.kernel.org -Reported-by: Jinwoo Lee -Closes: https://lore.kernel.org/all/20260813043932.3214460-1-rkskek9254@gmail.com -Reported-by: Stefan Teodorescu -Link: https://patch.msgid.link/20260921211608.1030158-2-seanjc@google.com -Signed-off-by: Sean Christopherson -Signed-off-by: Igor Pecovnik ---- - arch/x86/kvm/x86.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c -index b24db986dfed..744a260784df 100644 ---- a/arch/x86/kvm/x86.c -+++ b/arch/x86/kvm/x86.c -@@ -10639,6 +10639,7 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu) - - if (kvm_check_request(KVM_REQ_GET_NESTED_STATE_PAGES, vcpu)) { - if (unlikely(!kvm_nested_call(get_nested_state_pages)(vcpu))) { -+ kvm_make_request(KVM_REQ_GET_NESTED_STATE_PAGES, vcpu); - r = 0; - goto out; - } diff --git a/cve/CVE-2026-98863/6.1/base b/cve/CVE-2026-98863/6.1/base deleted file mode 100644 index 433951bd..00000000 --- a/cve/CVE-2026-98863/6.1/base +++ /dev/null @@ -1 +0,0 @@ -08889840163ebcdb7e24bf7ec311bc2e6fc3aaea diff --git a/cve/CVE-2026-98863/6.1/fasttrack.json b/cve/CVE-2026-98863/6.1/fasttrack.json deleted file mode 100644 index 926118aa..00000000 --- a/cve/CVE-2026-98863/6.1/fasttrack.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "series": "6.1", - "base": { - "commit": "08889840163ebcdb7e24bf7ec311bc2e6fc3aaea", - "version": "6.1.191" - }, - "incident": "CVE-2026-98863", - "outcome": "patched", - "fixed_in": null, - "made": null, - "patches": [ - { - "series": "6.1", - "upstream": "b65699be2c606d2687593516d93e66d16a713b61", - "subject": "KVM: x86: Reject nested CAP enablement if nested virtualization is disabled", - "source": "stable-list", - "cves": [ - "CVE-2026-98863" - ], - "kev": false, - "verdict": "accepted", - "reason": "backport posted to stable@vger.kernel.org", - "filename": "0001-10180a277549-kvm-x86-re-pend-get-nested-state-pages-if-getting-sa.patch", - "files": [], - "prerequisites": [], - "build_log": "", - "backport": "" - }, - { - "series": "6.1", - "upstream": "10180a277549339020b08000206092c07e0bff5a", - "subject": "KVM: x86: Re-pend GET_NESTED_STATE_PAGES if getting said", - "source": "claude", - "cves": [ - "CVE-2026-98863" - ], - "kev": false, - "verdict": "claude-backport", - "reason": "backport posted to stable@vger.kernel.org", - "filename": "0002-10180a277549-kvm-x86-re-pend-get-nested-state-pages-if-getting-sa.patch", - "files": [], - "prerequisites": [], - "build_log": "", - "backport": "" - } - ] -} diff --git a/cve/CVE-2026-98863/6.1/series.conf b/cve/CVE-2026-98863/6.1/series.conf deleted file mode 100644 index 3f05f649..00000000 --- a/cve/CVE-2026-98863/6.1/series.conf +++ /dev/null @@ -1,6 +0,0 @@ -# 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). - -0001-10180a277549-kvm-x86-re-pend-get-nested-state-pages-if-getting-sa.patch -0002-10180a277549-kvm-x86-re-pend-get-nested-state-pages-if-getting-sa.patch