In the Linux kernel, the following vulnerability has been resolved:
thermal/drivers/hisi: Drop second sensor hi3660
The commit 74c8e6bffbe1 ("driver core: Add _allocsize hint to devm allocators") exposes a panic "BRK handler: Fatal exception" on the hi3660thermalprobe funciton. This is because the function allocates memory for only one sensors array entry, but tries to fill up a second one.
Fix this by removing the unneeded second access.
[
{
"signature_type": "Function",
"digest": {
"function_hash": "121603936081531873299885825116815838002",
"length": 567.0
},
"deprecated": false,
"id": "CVE-2023-53242-1164a8ba",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68e675a9b69cfc34dd915d91a4650e3ee53421f4",
"target": {
"function": "hi3660_thermal_probe",
"file": "drivers/thermal/hisi_thermal.c"
},
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"218618380035428073183665144347888038765",
"2039350050973930874195636696562445933",
"11938069609586193770827974293380127238",
"132692871918575104504327588356312181836",
"108582899197873904984254730572705487792",
"20137430175240372356794039780807090829"
]
},
"deprecated": false,
"id": "CVE-2023-53242-17e6569b",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3cf2181e438f43ed24e12424fe36d156cca233b9",
"target": {
"file": "drivers/thermal/hisi_thermal.c"
},
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"218618380035428073183665144347888038765",
"2039350050973930874195636696562445933",
"11938069609586193770827974293380127238",
"132692871918575104504327588356312181836",
"108582899197873904984254730572705487792",
"20137430175240372356794039780807090829"
]
},
"deprecated": false,
"id": "CVE-2023-53242-3f3ecb37",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f5aaf140ab1c02889c088e1b1098adad600541af",
"target": {
"file": "drivers/thermal/hisi_thermal.c"
},
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"218618380035428073183665144347888038765",
"2039350050973930874195636696562445933",
"11938069609586193770827974293380127238",
"132692871918575104504327588356312181836",
"108582899197873904984254730572705487792",
"102430491802054794576395348068900150517"
]
},
"deprecated": false,
"id": "CVE-2023-53242-3fab5370",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68e675a9b69cfc34dd915d91a4650e3ee53421f4",
"target": {
"file": "drivers/thermal/hisi_thermal.c"
},
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "121603936081531873299885825116815838002",
"length": 567.0
},
"deprecated": false,
"id": "CVE-2023-53242-7c310a7e",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@15cc25829a97c3957e520e971868aacc84341317",
"target": {
"function": "hi3660_thermal_probe",
"file": "drivers/thermal/hisi_thermal.c"
},
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "121603936081531873299885825116815838002",
"length": 567.0
},
"deprecated": false,
"id": "CVE-2023-53242-941d7152",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9f6756cd09889c7201ee31e6f76fbd914fb0b80d",
"target": {
"function": "hi3660_thermal_probe",
"file": "drivers/thermal/hisi_thermal.c"
},
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"218618380035428073183665144347888038765",
"2039350050973930874195636696562445933",
"11938069609586193770827974293380127238",
"132692871918575104504327588356312181836",
"108582899197873904984254730572705487792",
"20137430175240372356794039780807090829"
]
},
"deprecated": false,
"id": "CVE-2023-53242-aab65724",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e02bc492883abf751fd1a8d89fc025fbce6744c6",
"target": {
"file": "drivers/thermal/hisi_thermal.c"
},
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "121603936081531873299885825116815838002",
"length": 567.0
},
"deprecated": false,
"id": "CVE-2023-53242-b3c6e8aa",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3cf2181e438f43ed24e12424fe36d156cca233b9",
"target": {
"function": "hi3660_thermal_probe",
"file": "drivers/thermal/hisi_thermal.c"
},
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "121603936081531873299885825116815838002",
"length": 567.0
},
"deprecated": false,
"id": "CVE-2023-53242-c30ddb1d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f5aaf140ab1c02889c088e1b1098adad600541af",
"target": {
"function": "hi3660_thermal_probe",
"file": "drivers/thermal/hisi_thermal.c"
},
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"218618380035428073183665144347888038765",
"2039350050973930874195636696562445933",
"11938069609586193770827974293380127238",
"132692871918575104504327588356312181836",
"108582899197873904984254730572705487792",
"102430491802054794576395348068900150517"
]
},
"deprecated": false,
"id": "CVE-2023-53242-ca0f96b0",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@15cc25829a97c3957e520e971868aacc84341317",
"target": {
"file": "drivers/thermal/hisi_thermal.c"
},
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"218618380035428073183665144347888038765",
"2039350050973930874195636696562445933",
"11938069609586193770827974293380127238",
"132692871918575104504327588356312181836",
"108582899197873904984254730572705487792",
"102430491802054794576395348068900150517"
]
},
"deprecated": false,
"id": "CVE-2023-53242-d4ada3ea",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9f6756cd09889c7201ee31e6f76fbd914fb0b80d",
"target": {
"file": "drivers/thermal/hisi_thermal.c"
},
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "121603936081531873299885825116815838002",
"length": 567.0
},
"deprecated": false,
"id": "CVE-2023-53242-da789341",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e02bc492883abf751fd1a8d89fc025fbce6744c6",
"target": {
"function": "hi3660_thermal_probe",
"file": "drivers/thermal/hisi_thermal.c"
},
"signature_version": "v1"
}
]