mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 07:22:34 +00:00
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 commita0323b979f("nfc: Ensure presence of required attributes in the activate_target handler"). Fixes:9674da8759("NFC: Add firmware upload netlink command") Signed-off-by: Defang Bo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>