Go to file
CKI Backport Bot dd93393d89 dev/parport: fix the array out-of-bounds risk
JIRA: https://issues.redhat.com/browse/RHEL-54990
CVE: CVE-2024-42301

commit ab11dac93d2d568d151b1918d7b84c2d02bacbd5
Author: tuhaowen <tuhaowen@uniontech.com>
Date:   Mon Jul 8 16:04:30 2024 +0800

    dev/parport: fix the array out-of-bounds risk

    Fixed array out-of-bounds issues caused by sprintf
    by replacing it with snprintf for safer data copying,
    ensuring the destination buffer is not overflowed.

    Below is the stack trace I encountered during the actual issue:

    [ 66.575408s] [pid:5118,cpu4,QThread,4]Kernel panic - not syncing: stack-protector:
    Kernel stack is corrupted in: do_hardware_base_addr+0xcc/0xd0 [parport]
    [ 66.575408s] [pid:5118,cpu4,QThread,5]CPU: 4 PID: 5118 Comm:
    QThread Tainted: G S W O 5.10.97-arm64-desktop #7100.57021.2
    [ 66.575439s] [pid:5118,cpu4,QThread,6]TGID: 5087 Comm: EFileApp
    [ 66.575439s] [pid:5118,cpu4,QThread,7]Hardware name: HUAWEI HUAWEI QingYun
    PGUX-W515x-B081/SP1PANGUXM, BIOS 1.00.07 04/29/2024
    [ 66.575439s] [pid:5118,cpu4,QThread,8]Call trace:
    [ 66.575469s] [pid:5118,cpu4,QThread,9] dump_backtrace+0x0/0x1c0
    [ 66.575469s] [pid:5118,cpu4,QThread,0] show_stack+0x14/0x20
    [ 66.575469s] [pid:5118,cpu4,QThread,1] dump_stack+0xd4/0x10c
    [ 66.575500s] [pid:5118,cpu4,QThread,2] panic+0x1d8/0x3bc
    [ 66.575500s] [pid:5118,cpu4,QThread,3] __stack_chk_fail+0x2c/0x38
    [ 66.575500s] [pid:5118,cpu4,QThread,4] do_hardware_base_addr+0xcc/0xd0 [parport]

    Signed-off-by: tuhaowen <tuhaowen@uniontech.com>
    Cc: stable <stable@kernel.org>
    Link: https://lore.kernel.org/r/20240708080430.8221-1-tuhaowen@uniontech.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: CKI Backport Bot <cki-ci-bot+cki-gitlab-backport-bot@redhat.com>
2024-08-19 14:44:54 +00:00
Documentation Merge: rtla: backport fixes and enhancements 2024-08-19 13:23:52 +00:00
LICENSES
arch Merge: perf/x86: various intel updates 2024-08-19 13:23:09 +00:00
block Merge: block: fix request.queuelist usage in flush 2024-07-26 18:17:06 +00:00
certs
crypto crypto: pcrypt - Fix hungtask for PADATA_RESET 2024-05-29 13:20:49 +08:00
drivers dev/parport: fix the array out-of-bounds risk 2024-08-19 14:44:54 +00:00
fs Merge: Additional series arising from discussion in bug 212635, RHEL-9 pro-active back port 2024-08-19 13:23:29 +00:00
include Merge: perf/x86: various intel updates 2024-08-19 13:23:09 +00:00
init modules: wait do_free_init correctly 2024-06-17 14:17:30 -04:00
io_uring io_uring/sqpoll: work around a potential audit memory leak 2024-07-26 17:07:19 -04:00
ipc Merge: ipc/msg: mitigate the lock contention in ipc/msg 2024-05-16 13:29:40 +00:00
kernel Merge: rtla: backport fixes and enhancements 2024-08-19 13:23:52 +00:00
lib Merge: Kunit update for 9.5 2024-08-15 12:22:20 +00:00
mm Merge: mm: huge_memory: use !CONFIG_64BIT to relax huge page alignment on 32 bit machines 2024-08-19 13:25:55 +00:00
net Merge: net/sched: Fix UAF when resolving a clash 2024-08-16 14:25:04 +00:00
redhat [redhat] kernel-5.14.0-499.el9 2024-08-16 14:34:22 +00:00
samples samples/bpf: Use %lu format specifier for unsigned long values 2024-06-25 11:07:33 +02:00
scripts Merge: net: Optimize cacheline consumption of core networking structs 2024-08-07 16:49:46 +00:00
security Merge: net: backport visibility improvements 2024-08-12 16:18:50 +00:00
sound ASoC: fsl_rpmsg: update Kconfig dependencies 2024-07-08 20:55:21 +02:00
tools Merge: rtla: backport fixes and enhancements 2024-08-19 13:23:52 +00:00
usr kexec.h: add linux/kexec.h to UAPI compile-test coverage 2024-05-15 13:58:51 +08:00
virt Merge: AMD updates + SEV-SNP backport for 9.5 2024-07-10 17:45:11 +00:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore redhat: rhdocs: delete .get_maintainer.conf 2024-06-06 09:36:57 -04:00
.gitlab-ci.yml
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
Kconfig.redhat
MAINTAINERS Merge: Kunit update for 9.5 2024-08-15 12:22:20 +00:00
Makefile Merge DRM changes from upstream v6.9..v6.9.11 2024-07-30 10:57:32 +10:00
Makefile.rhelver [redhat] kernel-5.14.0-499.el9 2024-08-16 14:34:22 +00:00
README
makefile

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.