Go to file
Ivan Pravdin 2801079119 Bluetooth: vhci: Prevent use-after-free by removing debugfs files early
Move the creation of debugfs files into a dedicated function, and ensure
they are explicitly removed during vhci_release(), before associated
data structures are freed.

Previously, debugfs files such as "force_suspend", "force_wakeup", and
others were created under hdev->debugfs but not removed in
vhci_release(). Since vhci_release() frees the backing vhci_data
structure, any access to these files after release would result in
use-after-free errors.

Although hdev->debugfs is later freed in hci_release_dev(), user can
access files after vhci_data is freed but before hdev->debugfs is
released.

Fixes: ab4e4380d4 ("Bluetooth: Add vhci devcoredump support")
Signed-off-by: Ivan Pravdin <ipravdin.official@gmail.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2025-08-29 14:47:20 -04:00
Documentation Including fixes from Bluetooth. 2025-08-21 13:51:15 -04:00
LICENSES
arch LoongArch: KVM: Add address alignment check in pch_pic register access 2025-08-20 22:51:15 +08:00
block
certs
crypto
drivers Bluetooth: vhci: Prevent use-after-free by removing debugfs files early 2025-08-29 14:47:20 -04:00
fs Three ksmbd smb3 server fixes 2025-08-21 04:48:41 -07:00
include net: rose: convert 'use' field to refcount_t 2025-08-27 07:43:08 -07:00
init
io_uring
ipc
kernel Probes fixes for v6.17-rc2: 2025-08-20 16:29:30 -07:00
lib Crypto library fixes for v6.17-rc3 2025-08-21 04:54:01 -07:00
mm
net net: ipv4: fix regression in local-broadcast routes 2025-08-28 10:52:30 +02:00
rust
samples
scripts
security
sound
tools Including fixes from Bluetooth. 2025-08-21 13:51:15 -04:00
usr
virt
.clang-format
.clippy.toml
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.pylintrc
.rustfmt.toml
COPYING
CREDITS MAINTAINERS: retire Boris from TLS maintainers 2025-08-26 17:36:01 -07:00
Kbuild
Kconfig
MAINTAINERS MAINTAINERS: rmnet: Update email addresses 2025-08-27 17:08:56 -07:00
Makefile Linux 6.17-rc2 2025-08-17 15:22:10 -07:00
README

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 reStructuredText 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.