linux/drivers
Dan Carpenter e4eea89036 Bluetooth: vhci: Fix info leak in force_devcd_write()
There are a number of bugs here:

1) If "count" is less than sizeof(dump_data.data) then it copies
   uninitialized data.
2) If simple_write_to_buffer() returns -EFAULT then we run into a
   problem "ret < count" comparison.  "count" is an unsigned long so the
   comparison is type promoted to unsigned long and the negative returns
   become high positive values.  That also results in copying
   uninitialized data.
3) If "*ppos" is non-zero then the first part of the dump_data
   buffer is uninitialized.  Using copy_from_user() instead of
   simple_write_to_buffer() is more appropriate here.

Fixes: d5d5df6da0aa ("Bluetooth: Add vhci devcoredump support")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2023-04-23 22:02:57 -07:00
..
accel Merge branch 'hwmon-const' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging 2023-04-09 18:59:13 -07:00
accessibility
acpi Merge branch 'acpi-x86' 2023-04-14 15:15:32 +02:00
amba
android
ata
atm
auxdisplay
base
bcma bcma: Add explicit of_device.h include 2023-04-14 15:32:56 +03:00
block virtio: last minute fixes 2023-04-10 13:35:54 -07:00
bluetooth Bluetooth: vhci: Fix info leak in force_devcd_write() 2023-04-23 22:02:57 -07:00
bus Devicetree fixes for v6.2, part 3: 2023-04-13 15:21:56 -07:00
cdrom
char
clk
clocksource
comedi
connector
counter
cpufreq amd-pstate: Fix amd_pstate mode switch 2023-04-11 20:44:25 +02:00
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware firmware/psci: demote suspend-mode warning to info level 2023-04-14 13:48:56 +02:00
fpga
fsi
gnss
gpio
gpu Short summary of fixes pull: 2023-04-13 20:47:58 +02:00
greybus
hid bpf-next-for-netdev 2023-04-13 16:43:38 -07:00
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c just two driver fixes 2023-04-15 11:06:49 -07:00
i3c
idle
iio
infiniband RDMA/core: Fix GID entry ref leak when create_ah fails 2023-04-13 12:17:32 -03:00
input
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md
media
memory
memstick
message
mfd
misc
mmc
most
mtd This pull request contains the following bug fixes for UBI and UBIFS: 2023-04-15 16:55:09 -07:00
mux
net net: dpaa: avoid one skb_reset_mac_header() in dpaa_enable_tx_csum() 2023-04-23 14:16:44 +01:00
nfc
ntb
nubus
nvdimm
nvme nvme-pci: add NVME_QUIRK_BOGUS_NID for T-FORCE Z330 SSD 2023-04-14 07:13:48 +02:00
nvmem
of Devicetree fixes for v6.2, part 3: 2023-04-13 15:21:56 -07:00
opp
parisc
parport
pci pci-v6.3-fixes-2 2023-04-11 11:59:49 -07:00
pcmcia
peci
perf
phy
pinctrl Revert "pinctrl: amd: Disable and mask interrupts on resume" 2023-04-11 22:45:42 +02:00
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator regulator: sm5703: Fix missing n_voltages for fixed regulators 2023-04-11 12:41:59 +01:00
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-04-20 16:29:51 -07:00
sh
siox
slimbus
soc
soundwire
spi spi: One small fix for v6.3 2023-04-19 13:49:31 -07:00
spmi
ssb
staging net: vlan: introduce skb_vlan_eth_hdr() 2023-04-23 14:16:44 +01:00
target
tc
tee
thermal thermal: intel: Avoid updating unsupported THERM_STATUS_CLEAR mask bits 2023-04-11 18:12:19 +02:00
thunderbolt
tty serdev: Add method to assert break signal over tty UART port 2023-04-23 21:51:25 -07:00
ufs
uio
usb Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-04-13 16:04:28 -07:00
vdpa
vfio
vhost Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-04-13 16:04:28 -07:00
video Short summary of fixes pull: 2023-04-13 20:47:58 +02:00
virt
virtio
vlynq
w1
watchdog
xen
zorro
Kconfig
Makefile