summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-03-30 11:14:13 +0200
committerJohannes Berg <johannes.berg@intel.com>2026-04-07 12:35:04 +0200
commitea245d78dec594372e27d8c79616baf49e98a4a1 (patch)
tree40643a7802801aef87e235be344724859220c519 /drivers
parent25369b22223d1c56e42a0cd4ac9137349d5a898e (diff)
downloadlwn-ea245d78dec594372e27d8c79616baf49e98a4a1.tar.gz
lwn-ea245d78dec594372e27d8c79616baf49e98a4a1.zip
net: rfkill: prevent unlimited numbers of rfkill events from being created
Userspace can create an unlimited number of rfkill events if the system is so configured, while not consuming them from the rfkill file descriptor, causing a potential out of memory situation. Prevent this from bounding the number of pending rfkill events at a "large" number (i.e. 1000) to prevent abuses like this. Cc: Johannes Berg <johannes@sipsolutions.net> Reported-by: Yuan Tan <yuantan098@gmail.com> Reported-by: Yifan Wu <yifanwucs@gmail.com> Reported-by: Juefei Pu <tomapufckgml@gmail.com> Reported-by: Xin Liu <bird@lzu.edu.cn> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://patch.msgid.link/2026033013-disfigure-scroll-e25e@gregkh Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions