aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/build_assert.c
diff options
context:
space:
mode:
authorVladimir Moskovkin <[email protected]>2025-05-14 12:12:55 +0000
committerIlpo Järvinen <[email protected]>2025-05-15 11:52:09 +0000
commit4e89a4077490f52cde652d17e32519b666abf3a6 (patch)
treed2807f471c5e91498be292c7bfddb6532950fe44 /rust/helpers/build_assert.c
parentplatform/x86: fujitsu-laptop: Support Lifebook S2110 hotkeys (diff)
downloadkernel-4e89a4077490f52cde652d17e32519b666abf3a6.tar.gz
kernel-4e89a4077490f52cde652d17e32519b666abf3a6.zip
platform/x86: dell-wmi-sysman: Avoid buffer overflow in current_password_store()
If the 'buf' array received from the user contains an empty string, the 'length' variable will be zero. Accessing the 'buf' array element with index 'length - 1' will result in a buffer overflow. Add a check for an empty string. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: e8a60aa7404b ("platform/x86: Introduce support for Systems Management Driver over WMI for Dell Systems") Cc: [email protected] Signed-off-by: Vladimir Moskovkin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'rust/helpers/build_assert.c')
0 files changed, 0 insertions, 0 deletions