In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: debug: Fix potential buffer overflow by snprintf()
snprintf() returns the would-be-filled size when the string overflows the given buffer size, hence using this value may result in the buffer overflow (although it's unrealistic).
This patch replaces with a safer version, scnprintf() for papering over such a potential issue.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b318b9dd2ac67f39d0338ce563879d1f59a0347a",
"id": "CVE-2022-50051-2bc22296",
"deprecated": false,
"target": {
"file": "sound/soc/sof/debug.c"
},
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"245065879407928649665967889376570610871",
"81343260922499017543577810611365261713",
"67618076462110515210333548606644368548",
"133414760032395799024432322245825182224",
"60951120811516977233504287877734816929",
"203540573692755105502647259836720619775"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1eb123ce985e6cf302ac6e3f19862d132d86fa8f",
"id": "CVE-2022-50051-3fcaa35d",
"deprecated": false,
"target": {
"file": "sound/soc/sof/debug.c"
},
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"245065879407928649665967889376570610871",
"81343260922499017543577810611365261713",
"67618076462110515210333548606644368548",
"133414760032395799024432322245825182224",
"60951120811516977233504287877734816929",
"203540573692755105502647259836720619775"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a67971a17604ae7de278fb09243432459afc51e1",
"id": "CVE-2022-50051-a43b3cfb",
"deprecated": false,
"target": {
"file": "sound/soc/sof/debug.c"
},
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"245065879407928649665967889376570610871",
"81343260922499017543577810611365261713",
"67618076462110515210333548606644368548",
"133414760032395799024432322245825182224",
"60951120811516977233504287877734816929",
"203540573692755105502647259836720619775"
]
}
}
]