nfc: nfcmrvl: Fix potential memory leak in nfcmrvl_i2c_nci_send()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b5b3e23e4cace008e1a30e8614a484d14dfd07a1 · < 5dfdac5e3f8db5f4445228c44f64091045644a3b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nfc: nfcmrvl: Fix potential memory leak in nfcmrvl_i2c_nci_send()
nfcmrvl_i2c_nci_send() will be called by nfcmrvl_nci_send(), and skb should be freed in nfcmrvl_i2c_nci_send(). However, nfcmrvl_nci_send() will only free skb when i2c_master_send() return >=0, which means skb will memleak when i2c_master_send() failed. Free skb no matter whether i2c_master_send() succeeds.
From the CVE record · Linux
The nfcmrvl I2C NFC driver can leak an skb when i2c_master_send() fails. The leak can consume memory, but the input does not establish whether an attacker can trigger it or what access, authentication, or user interaction would be required.
Anyone running a Linux kernel with the nfcmrvl I2C NFC driver should check their version; affected versions are not specified.