In the Linux kernel, the following vulnerability has been resolved:
pinctrl: ralink: Check for null return of devm_kcalloc
Because of the possible failure of the allocation, data->domains might be NULL pointer and will cause the dereference of the NULL pointer later. Therefore, it might be better to check it and directly return -ENOMEM without releasing data manually if fails, because the comment of the devm_kmalloc() says "Memory allocated with this function is automatically freed on driver detach.".
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5595d30c4dc27d939635c3188c68203b6ece1711",
"id": "CVE-2022-49608-286886f2",
"deprecated": false,
"target": {
"function": "ralink_pinmux_pins",
"file": "drivers/pinctrl/ralink/pinctrl-ralink.c"
},
"signature_version": "v1",
"digest": {
"length": 1542.0,
"function_hash": "106425802096935374581886591308440573372"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@13596e6c9e541e90e5fc2c52b23f08b951370da9",
"id": "CVE-2022-49608-3199db92",
"deprecated": false,
"target": {
"function": "rt2880_pinmux_pins",
"file": "drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c"
},
"signature_version": "v1",
"digest": {
"length": 1609.0,
"function_hash": "203317570068436856979446904708438795642"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5595d30c4dc27d939635c3188c68203b6ece1711",
"id": "CVE-2022-49608-32616968",
"deprecated": false,
"target": {
"file": "drivers/pinctrl/ralink/pinctrl-ralink.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"132012647469300555185444576036599603809",
"96322778108041728624685171850302774415",
"194501001724804020194804071000925360351",
"155971835015201554030844529616193850204"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@44016a85419ca0d4f1e4d0127b330f8e4e2a57d0",
"id": "CVE-2022-49608-55739cd7",
"deprecated": false,
"target": {
"file": "drivers/pinctrl/ralink/pinctrl-ralink.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"132012647469300555185444576036599603809",
"96322778108041728624685171850302774415",
"194501001724804020194804071000925360351",
"155971835015201554030844529616193850204"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6194c021496addc11763d1ffa89ce5751889fe3c",
"id": "CVE-2022-49608-647a9462",
"deprecated": false,
"target": {
"function": "rt2880_pinmux_pins",
"file": "drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c"
},
"signature_version": "v1",
"digest": {
"length": 1609.0,
"function_hash": "203317570068436856979446904708438795642"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6194c021496addc11763d1ffa89ce5751889fe3c",
"id": "CVE-2022-49608-ae9c2642",
"deprecated": false,
"target": {
"file": "drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"132012647469300555185444576036599603809",
"96322778108041728624685171850302774415",
"194501001724804020194804071000925360351",
"155971835015201554030844529616193850204"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5694b162f275fb9a9f89422701b2b963be11e496",
"id": "CVE-2022-49608-b1a1825b",
"deprecated": false,
"target": {
"file": "drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"132012647469300555185444576036599603809",
"96322778108041728624685171850302774415",
"194501001724804020194804071000925360351",
"155971835015201554030844529616193850204"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@13596e6c9e541e90e5fc2c52b23f08b951370da9",
"id": "CVE-2022-49608-bd3249bf",
"deprecated": false,
"target": {
"file": "drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"132012647469300555185444576036599603809",
"96322778108041728624685171850302774415",
"194501001724804020194804071000925360351",
"155971835015201554030844529616193850204"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c3b821e8e406d5650e587b7ac624ac24e9b780a8",
"id": "CVE-2022-49608-c650399e",
"deprecated": false,
"target": {
"file": "drivers/pinctrl/ralink/pinctrl-ralink.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"132012647469300555185444576036599603809",
"96322778108041728624685171850302774415",
"194501001724804020194804071000925360351",
"155971835015201554030844529616193850204"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@44016a85419ca0d4f1e4d0127b330f8e4e2a57d0",
"id": "CVE-2022-49608-d17f83b6",
"deprecated": false,
"target": {
"function": "ralink_pinmux_pins",
"file": "drivers/pinctrl/ralink/pinctrl-ralink.c"
},
"signature_version": "v1",
"digest": {
"length": 1542.0,
"function_hash": "106425802096935374581886591308440573372"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c3b821e8e406d5650e587b7ac624ac24e9b780a8",
"id": "CVE-2022-49608-f957b6c8",
"deprecated": false,
"target": {
"function": "ralink_pinctrl_pins",
"file": "drivers/pinctrl/ralink/pinctrl-ralink.c"
},
"signature_version": "v1",
"digest": {
"length": 1542.0,
"function_hash": "106425802096935374581886591308440573372"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5694b162f275fb9a9f89422701b2b963be11e496",
"id": "CVE-2022-49608-feed0182",
"deprecated": false,
"target": {
"function": "rt2880_pinmux_pins",
"file": "drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c"
},
"signature_version": "v1",
"digest": {
"length": 1609.0,
"function_hash": "203317570068436856979446904708438795642"
},
"signature_type": "Function"
}
]