diff options
author | Defang Bo <bodefang@126.com> | 2020-10-19 19:38:58 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-10-20 17:06:22 -0700 |
commit | 280e3ebdafb863b3cb50d5842f056267e15bf40c (patch) | |
tree | eff2e1c1f6e5dead99c938c2b9d92485b569e705 /drivers/net | |
parent | b142083b585c2c03af24cca4d274f797796a4064 (diff) |
nfc: Ensure presence of NFC_ATTR_FIRMWARE_NAME attribute in nfc_genl_fw_download()
Check that the NFC_ATTR_FIRMWARE_NAME attributes are provided by
the netlink client prior to accessing them.This prevents potential
unhandled NULL pointer dereference exceptions which can be triggered
by malicious user-mode programs, if they omit one or both of these
attributes.
Similar to commit a0323b979f81 ("nfc: Ensure presence of required attributes in the activate_target handler").
Fixes: 9674da8759df ("NFC: Add firmware upload netlink command")
Signed-off-by: Defang Bo <bodefang@126.com>
Link: https://lore.kernel.org/r/1603107538-4744-1-git-send-email-bodefang@126.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions