Thread (9 messages) 9 messages, 4 authors, 2023-02-28

Re: [PATCH v3] nfc: fdp: add null check of devm_kmalloc_array in fdp_nci_i2c_read_device_properties

From: Simon Horman <hidden>
Date: 2023-02-27 12:12:45
Also in: lkml

On Mon, Feb 27, 2023 at 05:30:37PM +0800, void0red wrote:
[You don't often get email from void0red@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

From: Kang Chen <redacted>

devm_kmalloc_array may fails, *fw_vsc_cfg might be null and cause
out-of-bounds write in device_property_read_u8_array later.

Fixes: a06347c04c13 ("NFC: Add Intel Fields Peak NFC solution driver")
Signed-off-by: Kang Chen <redacted>
Reviewed-by: Simon Horman <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help