Go to file
Lucas Zampieri 3b65e3ea1b Merge: octeontx2-af: avoid off-by-one read from userspace
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4453

JIRA: https://issues.redhat.com/browse/RHEL-39873  
CVE: CVE-2024-36957  
  
commit f299ee709fb45036454ca11e90cb2810fe771878  
Author: Bui Quang Minh <minhquangbui99@gmail.com>  
Date:   Wed Apr 24 21:44:23 2024 +0700  
  
    octeontx2-af: avoid off-by-one read from userspace  
  
    We try to access count + 1 byte from userspace with memdup_user(buffer,  
    count + 1). However, the userspace only provides buffer of count bytes and  
    only these count bytes are verified to be okay to access. To ensure the  
    copied buffer is NUL terminated, we use memdup_user_nul instead.  
  
    Fixes: 3a2eb515d1 ("octeontx2-af: Fix an off by one in rvu_dbg_qsize_write()")  
    Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>  
    Link: https://lore.kernel.org/r/20240424-fix-oob-read-v2-6-f1f1b53a10f4@gmail.com  
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>  
  
Signed-off-by: Kamal Heib <kheib@redhat.com>

Approved-by: José Ignacio Tornos Martínez <jtornosm@redhat.com>
Approved-by: Chris von Recklinghausen <crecklin@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>

Merged-by: Lucas Zampieri <lzampier@redhat.com>
2024-06-17 13:08:39 +00:00
Documentation Merge: workqueue: Backport workqueue commits to v6.9 2024-06-13 13:07:43 +00:00
LICENSES
arch Merge: x86/mm: Ensure input to pfn_to_kaddr() is treated as a 64-bit type 2024-06-17 12:32:31 +00:00
block
certs
crypto
drivers Merge: octeontx2-af: avoid off-by-one read from userspace 2024-06-17 13:08:39 +00:00
fs Merge: gfs2: Fix glock shrinker 2024-06-12 13:28:35 +00:00
include Merge: cpufreq/amd-pstate: Fix scaling_min_freq and scaling_max_freq update 2024-06-17 12:25:10 +00:00
init Merge: workqueue: Backport workqueue commits to v6.9 2024-06-13 13:07:43 +00:00
io_uring
ipc
kernel Merge: fork: defer linking file vma until vma is fully initialized 2024-06-17 12:51:50 +00:00
lib Merge: lib/stackdepot: Proactive backport of upstream fixes 2024-06-17 12:54:37 +00:00
mm Merge: mm/hugetlb: fix missing hugetlb_lock for resv uncharge 2024-06-12 13:32:08 +00:00
net
redhat Merge: redhat/configs: Enable CONFIG_BLK_CGROUP_IOCOST 2024-06-17 12:55:51 +00:00
samples
scripts
security
sound Merge DRM changes from upstream v6.7..v6.8 2024-06-11 06:44:18 +10:00
tools Merge: workqueue: Backport workqueue commits to v6.9 2024-06-13 13:07:43 +00:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.gitlab-ci.yml
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
Kconfig.redhat
MAINTAINERS Merge: cpufreq/amd-pstate: Fix scaling_min_freq and scaling_max_freq update 2024-06-17 12:25:10 +00:00
Makefile Merge DRM changes from upstream v6.8..v6.9 2024-06-11 06:44:19 +10:00
Makefile.rhelver [redhat] kernel-5.14.0-464.el9 2024-06-13 13:20:10 +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.