diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-04-02 14:44:42 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-14 10:50:32 +0300 |
commit | db574a60c48236addd86113da86f1343078ee4fc (patch) | |
tree | d88c05d7e3cd515850109cc39d92100159ccc857 /crypto/cbc.c | |
parent | a16f02187d9d1f351b1b43d6cbd4f297b6518c2c (diff) | |
download | linux-db574a60c48236addd86113da86f1343078ee4fc.tar.xz |
nfc: pn533: prevent potential memory corruption
[ Upstream commit ca4d4c34ae9aa5c3c0da76662c5e549d2fc0cc86 ]
If the "type_a->nfcid_len" is too large then it would lead to memory
corruption in pn533_target_found_type_a() when we do:
memcpy(nfc_tgt->nfcid1, tgt_type_a->nfcid_data, nfc_tgt->nfcid1_len);
Fixes: c3b1e1e8a76f ("NFC: Export NFCID1 from pn533")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto/cbc.c')
0 files changed, 0 insertions, 0 deletions