In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: Intel: hda: 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@f7915c5614a7ece117ec390f21a410531eac48de",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50050-12b76c01",
"target": {
"file": "sound/soc/sof/intel/hda.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"103903397671063350088665378331958070358",
"60268642823374743274856752436380756651",
"229478333525339223586711218315481189068",
"9999093166630486667737291891252238356"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ee1310f4d148dbf04c4159b88afd0b941018903",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50050-a462f993",
"target": {
"file": "sound/soc/sof/intel/hda.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"103903397671063350088665378331958070358",
"60268642823374743274856752436380756651",
"255896614141442579697971201499739096425",
"73862007468945452985534425053877568054"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@94c1ceb043c1a002de9649bb630c8e8347645982",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50050-c1efdbcd",
"target": {
"file": "sound/soc/sof/intel/hda.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"103903397671063350088665378331958070358",
"60268642823374743274856752436380756651",
"229478333525339223586711218315481189068",
"9999093166630486667737291891252238356"
]
},
"signature_type": "Line"
}
]