In the Linux kernel, the following vulnerability has been resolved:
nfc: nfcmrvl: Fix potential memory leak in nfcmrvli2cnci_send()
nfcmrvli2cncisend() will be called by nfcmrvlncisend(), and skb should be freed in nfcmrvli2cncisend(). However, nfcmrvlncisend() will only free skb when i2cmastersend() return >=0, which means skb will memleak when i2cmastersend() failed. Free skb no matter whether i2cmastersend() succeeds.
[
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"311526947343799101526899953114821857479",
"190996317879415509763520645753372367505",
"75939453574910019003768884724690912725",
"297962433275379936761752636650831829363",
"63367695801612445410264286096553255799",
"310433419770464759001558887813727845397",
"222985075958817119247387119355455702059"
]
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f30060efcf18883748a0541aa41acef183cd9c0e",
"id": "CVE-2022-49922-1709b4ae",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "315079804579600626068812744412881743483",
"length": 627.0
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c",
"function": "nfcmrvl_i2c_nci_send"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@825656ae61e73ddc05f585e6258d284c87064b10",
"id": "CVE-2022-49922-17f26326",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"311526947343799101526899953114821857479",
"190996317879415509763520645753372367505",
"75939453574910019003768884724690912725",
"297962433275379936761752636650831829363",
"63367695801612445410264286096553255799",
"310433419770464759001558887813727845397",
"222985075958817119247387119355455702059"
]
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@52438e734c1566f5e2bcd9a065d2d65e306c0555",
"id": "CVE-2022-49922-1edab16b",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "315079804579600626068812744412881743483",
"length": 627.0
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c",
"function": "nfcmrvl_i2c_nci_send"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c8e7d4a1166f063703955f1b2e765a6db5bf1771",
"id": "CVE-2022-49922-2f5d4f98",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"311526947343799101526899953114821857479",
"190996317879415509763520645753372367505",
"75939453574910019003768884724690912725",
"297962433275379936761752636650831829363",
"63367695801612445410264286096553255799",
"310433419770464759001558887813727845397",
"222985075958817119247387119355455702059"
]
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@825656ae61e73ddc05f585e6258d284c87064b10",
"id": "CVE-2022-49922-392c66f7",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "315079804579600626068812744412881743483",
"length": 627.0
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c",
"function": "nfcmrvl_i2c_nci_send"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92a1df9c6da20c02cf9872f8b025a66ddb307aeb",
"id": "CVE-2022-49922-5e72e484",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "315079804579600626068812744412881743483",
"length": 627.0
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c",
"function": "nfcmrvl_i2c_nci_send"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f30060efcf18883748a0541aa41acef183cd9c0e",
"id": "CVE-2022-49922-87bf17f1",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"311526947343799101526899953114821857479",
"190996317879415509763520645753372367505",
"75939453574910019003768884724690912725",
"297962433275379936761752636650831829363",
"63367695801612445410264286096553255799",
"310433419770464759001558887813727845397",
"222985075958817119247387119355455702059"
]
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dd0ee55ead91fbb16889dbe7ff0b0f7c9e4e849d",
"id": "CVE-2022-49922-8989d891",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "315079804579600626068812744412881743483",
"length": 627.0
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c",
"function": "nfcmrvl_i2c_nci_send"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5dfdac5e3f8db5f4445228c44f64091045644a3b",
"id": "CVE-2022-49922-8cd6df1e",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"311526947343799101526899953114821857479",
"190996317879415509763520645753372367505",
"75939453574910019003768884724690912725",
"297962433275379936761752636650831829363",
"63367695801612445410264286096553255799",
"310433419770464759001558887813727845397",
"222985075958817119247387119355455702059"
]
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5dfdac5e3f8db5f4445228c44f64091045644a3b",
"id": "CVE-2022-49922-91833dbb",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"311526947343799101526899953114821857479",
"190996317879415509763520645753372367505",
"75939453574910019003768884724690912725",
"297962433275379936761752636650831829363",
"63367695801612445410264286096553255799",
"310433419770464759001558887813727845397",
"222985075958817119247387119355455702059"
]
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92a1df9c6da20c02cf9872f8b025a66ddb307aeb",
"id": "CVE-2022-49922-9a5eb874",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "315079804579600626068812744412881743483",
"length": 627.0
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c",
"function": "nfcmrvl_i2c_nci_send"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@52438e734c1566f5e2bcd9a065d2d65e306c0555",
"id": "CVE-2022-49922-a20d874d",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"311526947343799101526899953114821857479",
"190996317879415509763520645753372367505",
"75939453574910019003768884724690912725",
"297962433275379936761752636650831829363",
"63367695801612445410264286096553255799",
"310433419770464759001558887813727845397",
"222985075958817119247387119355455702059"
]
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@93d904a734a74c54d945a9884b4962977f1176cd",
"id": "CVE-2022-49922-c41fda17",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "315079804579600626068812744412881743483",
"length": 627.0
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c",
"function": "nfcmrvl_i2c_nci_send"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@93d904a734a74c54d945a9884b4962977f1176cd",
"id": "CVE-2022-49922-cef77f39",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"311526947343799101526899953114821857479",
"190996317879415509763520645753372367505",
"75939453574910019003768884724690912725",
"297962433275379936761752636650831829363",
"63367695801612445410264286096553255799",
"310433419770464759001558887813727845397",
"222985075958817119247387119355455702059"
]
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c8e7d4a1166f063703955f1b2e765a6db5bf1771",
"id": "CVE-2022-49922-d36d43b1",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "315079804579600626068812744412881743483",
"length": 627.0
},
"target": {
"file": "drivers/nfc/nfcmrvl/i2c.c",
"function": "nfcmrvl_i2c_nci_send"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dd0ee55ead91fbb16889dbe7ff0b0f7c9e4e849d",
"id": "CVE-2022-49922-dd731dc6",
"deprecated": false,
"signature_version": "v1"
}
]