In the Linux kernel, the following vulnerability has been resolved:
NFC: nci: fix memory leak in nciallocatedevice
nfcmrvldisconnect fails to free the hcidev field in struct ncidev. Fix this by freeing hcidev in ncifreedevice.
BUG: memory leak unreferenced object 0xffff888111ea6800 (size 1024): comm "kworker/1:0", pid 19, jiffies 4294942308 (age 13.580s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 60 fd 0c 81 88 ff ff .........`...... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<000000004bc25d43>] kmalloc include/linux/slab.h:552 [inline] [<000000004bc25d43>] kzalloc include/linux/slab.h:682 [inline] [<000000004bc25d43>] ncihciallocate+0x21/0xd0 net/nfc/nci/hci.c:784 [<00000000c59cff92>] nciallocatedevice net/nfc/nci/core.c:1170 [inline] [<00000000c59cff92>] nciallocatedevice+0x10b/0x160 net/nfc/nci/core.c:1132 [<00000000006e0a8e>] nfcmrvlnciregisterdev+0x10a/0x1c0 drivers/nfc/nfcmrvl/main.c:153 [<000000004da1b57e>] nfcmrvlprobe+0x223/0x290 drivers/nfc/nfcmrvl/usb.c:345 [<00000000d506aed9>] usbprobeinterface+0x177/0x370 drivers/usb/core/driver.c:396 [<00000000bc632c92>] reallyprobe+0x159/0x4a0 drivers/base/dd.c:554 [<00000000f5009125>] driverprobe_device+0x84/0x100 drivers/base/dd.c:740 [<000000000ce658ca>] __deviceattachdriver+0xee/0x110 drivers/base/dd.c:846 [<000000007067d05f>] busforeach_drv+0xb7/0x100 drivers/base/bus.c:431 [<00000000f8e13372>] __deviceattach+0x122/0x250 drivers/base/dd.c:914 [<000000009cf68860>] busprobedevice+0xc6/0xe0 drivers/base/bus.c:491 [<00000000359c965a>] deviceadd+0x5be/0xc30 drivers/base/core.c:3109 [<00000000086e4bd3>] usbsetconfiguration+0x9d9/0xb90 drivers/usb/core/message.c:2164 [<00000000ca036872>] usbgenericdriverprobe+0x8c/0xc0 drivers/usb/core/generic.c:238 [<00000000d40d36f6>] usbprobedevice+0x5c/0x140 drivers/usb/core/driver.c:293 [<00000000bc632c92>] reallyprobe+0x159/0x4a0 drivers/base/dd.c:554
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47180.json"
[
{
"events": [
{
"introduced": "4.0"
},
{
"fixed": "4.4.271"
}
]
},
{
"events": [
{
"introduced": "4.5"
},
{
"fixed": "4.9.271"
}
]
},
{
"events": [
{
"introduced": "4.10"
},
{
"fixed": "4.14.235"
}
]
},
{
"events": [
{
"introduced": "4.15"
},
{
"fixed": "4.19.193"
}
]
},
{
"events": [
{
"introduced": "4.20"
},
{
"fixed": "5.4.123"
}
]
},
{
"events": [
{
"introduced": "5.5"
},
{
"fixed": "5.10.41"
}
]
},
{
"events": [
{
"introduced": "5.11"
},
{
"fixed": "5.12.8"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc1"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc2"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc3"
}
]
}
]