In the Linux kernel, the following vulnerability has been resolved:
serial: arcuart: fix ofiomap leak in arc_serial_probe
Smatch reports:
drivers/tty/serial/arcuart.c:631 arcserialprobe() warn: 'port->membase' from ofiomap() not released on lines: 631.
In arcserialprobe(), if uartaddone_port() fails, port->membase is not released, which would cause a resource leak.
To fix this, I replace ofiomap with devmplatformioremapresource.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3f00df24a5021a6f02c1830a290acd4bceb22a2d",
"target": {
"file": "drivers/tty/serial/arc_uart.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-53719-0a7312ce",
"signature_type": "Line",
"digest": {
"line_hashes": [
"177911320436384208057486973561737319776",
"134910297681889229615559196817792042806",
"126941043705382859999423222951637747976",
"58820481516220954704978347495156004809",
"49525020232307675304370873287964360462",
"109461773276704055160759961784721529200"
],
"threshold": 0.9
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8ab5fc55d7f65d58a3c3aeadf11bdf60267cd2bd",
"target": {
"file": "drivers/tty/serial/arc_uart.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-53719-0e58dc50",
"signature_type": "Line",
"digest": {
"line_hashes": [
"177911320436384208057486973561737319776",
"134910297681889229615559196817792042806",
"126941043705382859999423222951637747976",
"58820481516220954704978347495156004809",
"49525020232307675304370873287964360462",
"109461773276704055160759961784721529200"
],
"threshold": 0.9
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@081790eee6b47389a0d895262086d64c6a38d6e5",
"target": {
"file": "drivers/tty/serial/arc_uart.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-53719-105f252b",
"signature_type": "Line",
"digest": {
"line_hashes": [
"177911320436384208057486973561737319776",
"134910297681889229615559196817792042806",
"126941043705382859999423222951637747976",
"58820481516220954704978347495156004809",
"49525020232307675304370873287964360462",
"109461773276704055160759961784721529200"
],
"threshold": 0.9
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8ab5fc55d7f65d58a3c3aeadf11bdf60267cd2bd",
"target": {
"function": "arc_serial_probe",
"file": "drivers/tty/serial/arc_uart.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-53719-1ca9f187",
"signature_type": "Function",
"digest": {
"function_hash": "297773870740935963817129678743552886062",
"length": 1201.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7525aa211758cc023a371e010d16ceaae1057807",
"target": {
"file": "drivers/tty/serial/arc_uart.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-53719-243a8cce",
"signature_type": "Line",
"digest": {
"line_hashes": [
"177911320436384208057486973561737319776",
"134910297681889229615559196817792042806",
"126941043705382859999423222951637747976",
"58820481516220954704978347495156004809",
"49525020232307675304370873287964360462",
"109461773276704055160759961784721529200"
],
"threshold": 0.9
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@081790eee6b47389a0d895262086d64c6a38d6e5",
"target": {
"function": "arc_serial_probe",
"file": "drivers/tty/serial/arc_uart.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-53719-28e14f7b",
"signature_type": "Function",
"digest": {
"function_hash": "297773870740935963817129678743552886062",
"length": 1201.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@40a462313ba4f337a2b419e7fb4a670f3dd95e14",
"target": {
"file": "drivers/tty/serial/arc_uart.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-53719-2da00099",
"signature_type": "Line",
"digest": {
"line_hashes": [
"177911320436384208057486973561737319776",
"134910297681889229615559196817792042806",
"126941043705382859999423222951637747976",
"58820481516220954704978347495156004809",
"49525020232307675304370873287964360462",
"109461773276704055160759961784721529200"
],
"threshold": 0.9
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@153017561d2804cfae87cc9aa377aa84dd906ae1",
"target": {
"function": "arc_serial_probe",
"file": "drivers/tty/serial/arc_uart.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-53719-3689a816",
"signature_type": "Function",
"digest": {
"function_hash": "297773870740935963817129678743552886062",
"length": 1201.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3f00df24a5021a6f02c1830a290acd4bceb22a2d",
"target": {
"function": "arc_serial_probe",
"file": "drivers/tty/serial/arc_uart.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-53719-776114e9",
"signature_type": "Function",
"digest": {
"function_hash": "128829301261127096487835870082641301704",
"length": 1141.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f76a18e53a66c0ef2938276110717b3805720cd9",
"target": {
"file": "drivers/tty/serial/arc_uart.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-53719-c73e160d",
"signature_type": "Line",
"digest": {
"line_hashes": [
"177911320436384208057486973561737319776",
"134910297681889229615559196817792042806",
"126941043705382859999423222951637747976",
"58820481516220954704978347495156004809",
"49525020232307675304370873287964360462",
"109461773276704055160759961784721529200"
],
"threshold": 0.9
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f76a18e53a66c0ef2938276110717b3805720cd9",
"target": {
"function": "arc_serial_probe",
"file": "drivers/tty/serial/arc_uart.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-53719-ca9cac71",
"signature_type": "Function",
"digest": {
"function_hash": "297773870740935963817129678743552886062",
"length": 1201.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@40a462313ba4f337a2b419e7fb4a670f3dd95e14",
"target": {
"function": "arc_serial_probe",
"file": "drivers/tty/serial/arc_uart.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-53719-cd18f57d",
"signature_type": "Function",
"digest": {
"function_hash": "297773870740935963817129678743552886062",
"length": 1201.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7525aa211758cc023a371e010d16ceaae1057807",
"target": {
"function": "arc_serial_probe",
"file": "drivers/tty/serial/arc_uart.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-53719-d036934e",
"signature_type": "Function",
"digest": {
"function_hash": "128829301261127096487835870082641301704",
"length": 1141.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@153017561d2804cfae87cc9aa377aa84dd906ae1",
"target": {
"file": "drivers/tty/serial/arc_uart.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-53719-ee7ffab8",
"signature_type": "Line",
"digest": {
"line_hashes": [
"177911320436384208057486973561737319776",
"134910297681889229615559196817792042806",
"126941043705382859999423222951637747976",
"58820481516220954704978347495156004809",
"49525020232307675304370873287964360462",
"109461773276704055160759961784721529200"
],
"threshold": 0.9
}
}
]