Skip to content

block: partitions: bound sysv68 slice table count#951

Open
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1109453=>linus-master
Open

block: partitions: bound sysv68 slice table count#951
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1109453=>linus-master

Conversation

@blktests-ci

@blktests-ci blktests-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown

Pull request for series with
subject: block: partitions: bound sysv68 slice table count
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1109453

@blktests-ci

blktests-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown
Author

Upstream branch: 9716c08
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109453
version: 1

@blktests-ci

blktests-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown
Author

Upstream branch: 2a2974b
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109453
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1109453=>linus-master branch from f4c6ba4 to b1a450b Compare June 12, 2026 22:43
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 5f78e5d to e48f9db Compare June 13, 2026 01:19
@blktests-ci

blktests-ci Bot commented Jun 13, 2026

Copy link
Copy Markdown
Author

Upstream branch: 062871f
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109453
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1109453=>linus-master branch from b1a450b to c0352d9 Compare June 13, 2026 01:40
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch 2 times, most recently from 199644a to e6d9eb8 Compare June 17, 2026 12:02
@blktests-ci

blktests-ci Bot commented Jun 17, 2026

Copy link
Copy Markdown
Author

Upstream branch: 66affa3
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109453
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1109453=>linus-master branch from c0352d9 to 6b799ac Compare June 17, 2026 12:42
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from e6d9eb8 to 7d8604f Compare June 24, 2026 01:11
@blktests-ci

blktests-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown
Author

Upstream branch: bade58e
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109453
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1109453=>linus-master branch from 6b799ac to 0629326 Compare June 24, 2026 01:36
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 7d8604f to 4cc45a3 Compare June 26, 2026 08:14
@blktests-ci

blktests-ci Bot commented Jun 26, 2026

Copy link
Copy Markdown
Author

Upstream branch: 4edcdef
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109453
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1109453=>linus-master branch from 0629326 to 976cbef Compare June 26, 2026 08:56
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 4cc45a3 to 90ffd56 Compare June 29, 2026 17:14
sysv68_partition() reads a single sector for the slice table, but it
trusts ios_slccnt from disk and walks that many entries after skipping
the synthetic whole-disk slice. A crafted image can set ios_slccnt
larger than the 64 struct slice records that fit in one sector and
trigger an out-of-bounds read while scanning partitions.

Limit the slice count to the number of records that fit in the sector
returned by read_part_sector(), then drop the whole-disk entry only
when the bounded count is non-zero.

Fixes: 19d0e8c ("partition: add support for sysv68 partitions")
Cc: stable@vger.kernel.org
Reported-by: Yuan Tan <yuantan098@gmail.com>
Reported-by: Zhengchuan Liang <zcliangcn@gmail.com>
Reported-by: Xin Liu <bird@lzu.edu.cn>
Assisted-by: Codex:GPT-5.4
Signed-off-by: Zhao Zhang <zzhan461@ucr.edu>
Signed-off-by: Ren Wei <n05ec@lzu.edu.cn>
Reviewed-by: Philippe De Muyter <phdm@macqel.be>
@blktests-ci

blktests-ci Bot commented Jun 29, 2026

Copy link
Copy Markdown
Author

Upstream branch: dc59e4f
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109453
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1109453=>linus-master branch from 976cbef to 3ae236e Compare June 29, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant