In the Linux kernel, the following vulnerability has been resolved:
thermal/drivers/tsens: Fix null pointer dereference
computeinterceptslope() is called from calibrate8960() (in tsens-8960.c) as computeinterceptslope(priv, p1, NULL, ONEPTCALIB) which lead to null pointer dereference (if DEBUG or DYNAMICDEBUG set). Fix this bug by adding null pointer check.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@11c731386ed82053c2759b6fea1a82ae946e5e0f",
"target": {
"file": "drivers/thermal/qcom/tsens.c",
"function": "compute_intercept_slope"
},
"id": "CVE-2024-38571-05502e15",
"signature_type": "Function",
"signature_version": "v1",
"digest": {
"function_hash": "214824597745765211897121781728423101904",
"length": 783.0
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@27600e0c5272a262b0903e35ae1df37d33c5c1ad",
"target": {
"file": "drivers/thermal/qcom/tsens.c",
"function": "compute_intercept_slope"
},
"id": "CVE-2024-38571-06b320d0",
"signature_type": "Function",
"signature_version": "v1",
"digest": {
"function_hash": "214824597745765211897121781728423101904",
"length": 783.0
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fcf5f1b5f308f2eb422f6aca55d295b25890906b",
"target": {
"file": "drivers/thermal/qcom/tsens.c"
},
"id": "CVE-2024-38571-2158875a",
"signature_type": "Line",
"signature_version": "v1",
"digest": {
"line_hashes": [
"229274984363758897286301755551493188755",
"197383583405043886056827561330803888877",
"281165524651343348575648556219232167893",
"288322834476315640050514701337878486212"
],
"threshold": 0.9
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d5ca6e4a2872e92a32fdfd87e04dd7d3ced7278",
"target": {
"file": "drivers/thermal/qcom/tsens.c"
},
"id": "CVE-2024-38571-6850a2d4",
"signature_type": "Line",
"signature_version": "v1",
"digest": {
"line_hashes": [
"229274984363758897286301755551493188755",
"197383583405043886056827561330803888877",
"281165524651343348575648556219232167893",
"288322834476315640050514701337878486212"
],
"threshold": 0.9
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d998ddc86a27c92140b9f7984ff41e3d1d07a48f",
"target": {
"file": "drivers/thermal/qcom/tsens.c",
"function": "compute_intercept_slope"
},
"id": "CVE-2024-38571-84dc712e",
"signature_type": "Function",
"signature_version": "v1",
"digest": {
"function_hash": "295758011249022396935255003317127024102",
"length": 818.0
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@06d17744b77bc6cb29a6c785f4fad8c4163ee653",
"target": {
"file": "drivers/thermal/qcom/tsens.c"
},
"id": "CVE-2024-38571-8ea17c80",
"signature_type": "Line",
"signature_version": "v1",
"digest": {
"line_hashes": [
"229274984363758897286301755551493188755",
"197383583405043886056827561330803888877",
"281165524651343348575648556219232167893",
"288322834476315640050514701337878486212"
],
"threshold": 0.9
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@06d17744b77bc6cb29a6c785f4fad8c4163ee653",
"target": {
"file": "drivers/thermal/qcom/tsens.c",
"function": "compute_intercept_slope"
},
"id": "CVE-2024-38571-944a2fe7",
"signature_type": "Function",
"signature_version": "v1",
"digest": {
"function_hash": "295758011249022396935255003317127024102",
"length": 818.0
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d5ca6e4a2872e92a32fdfd87e04dd7d3ced7278",
"target": {
"file": "drivers/thermal/qcom/tsens.c",
"function": "compute_intercept_slope"
},
"id": "CVE-2024-38571-9b86c38e",
"signature_type": "Function",
"signature_version": "v1",
"digest": {
"function_hash": "295758011249022396935255003317127024102",
"length": 818.0
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@27600e0c5272a262b0903e35ae1df37d33c5c1ad",
"target": {
"file": "drivers/thermal/qcom/tsens.c"
},
"id": "CVE-2024-38571-ceb56168",
"signature_type": "Line",
"signature_version": "v1",
"digest": {
"line_hashes": [
"229274984363758897286301755551493188755",
"197383583405043886056827561330803888877",
"281165524651343348575648556219232167893",
"60597160609673424367768002086663364770"
],
"threshold": 0.9
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fcf5f1b5f308f2eb422f6aca55d295b25890906b",
"target": {
"file": "drivers/thermal/qcom/tsens.c",
"function": "compute_intercept_slope"
},
"id": "CVE-2024-38571-db350329",
"signature_type": "Function",
"signature_version": "v1",
"digest": {
"function_hash": "295758011249022396935255003317127024102",
"length": 818.0
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@11c731386ed82053c2759b6fea1a82ae946e5e0f",
"target": {
"file": "drivers/thermal/qcom/tsens.c"
},
"id": "CVE-2024-38571-e0e6f9b7",
"signature_type": "Line",
"signature_version": "v1",
"digest": {
"line_hashes": [
"229274984363758897286301755551493188755",
"197383583405043886056827561330803888877",
"281165524651343348575648556219232167893",
"60597160609673424367768002086663364770"
],
"threshold": 0.9
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d998ddc86a27c92140b9f7984ff41e3d1d07a48f",
"target": {
"file": "drivers/thermal/qcom/tsens.c"
},
"id": "CVE-2024-38571-fb01afd1",
"signature_type": "Line",
"signature_version": "v1",
"digest": {
"line_hashes": [
"229274984363758897286301755551493188755",
"197383583405043886056827561330803888877",
"281165524651343348575648556219232167893",
"288322834476315640050514701337878486212"
],
"threshold": 0.9
},
"deprecated": false
}
]