In the Linux kernel, the following vulnerability has been resolved:
ASoC: sma1307: Add NULL check in sma1307settingloaded()
All varibale allocated by kzalloc and devm_kzalloc could be NULL. Multiple pointer checks and their cleanup are added.
This issue is found by our static analysis tool
[
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"41156468760625971806842602344909871268",
"202790644468387850363005235974670478710",
"153100213390203149441509038617761020939",
"30326043497257311080663499384729360373",
"189301419089284537015410835553614491179",
"197228373821783418715742167600462723673",
"73039149125554110088814357934204746970",
"165822337237296029810461609194483100529",
"21433397881865270009341712914059609707",
"166559515203121652446125966849643446614",
"233813765717580059750486035854966108599",
"276710236273611798069250864020475723527",
"247745004455507873282439920377732102810",
"299290842224654732002775330301280052933",
"310102808909224819078002431669911627763",
"144559459919537037271859056500397274081"
]
},
"id": "CVE-2025-38070-1cce1d6e",
"signature_type": "Line",
"target": {
"file": "sound/soc/codecs/sma1307.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8434b8ba437d3f6cbcd9ffe8405bd16ed28fc5c"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"41156468760625971806842602344909871268",
"202790644468387850363005235974670478710",
"153100213390203149441509038617761020939",
"30326043497257311080663499384729360373",
"189301419089284537015410835553614491179",
"197228373821783418715742167600462723673",
"73039149125554110088814357934204746970",
"165822337237296029810461609194483100529",
"21433397881865270009341712914059609707",
"166559515203121652446125966849643446614",
"233813765717580059750486035854966108599",
"276710236273611798069250864020475723527",
"247745004455507873282439920377732102810",
"299290842224654732002775330301280052933",
"310102808909224819078002431669911627763",
"144559459919537037271859056500397274081"
]
},
"id": "CVE-2025-38070-4a419a44",
"signature_type": "Line",
"target": {
"file": "sound/soc/codecs/sma1307.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0ec6bd16705fe21d6429d6b8f7981eae2142bba8"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 2141.0,
"function_hash": "150584256978178803280377347686789496374"
},
"id": "CVE-2025-38070-5c283092",
"signature_type": "Function",
"target": {
"file": "sound/soc/codecs/sma1307.c",
"function": "sma1307_setting_loaded"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0ec6bd16705fe21d6429d6b8f7981eae2142bba8"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 2141.0,
"function_hash": "150584256978178803280377347686789496374"
},
"id": "CVE-2025-38070-d29738c8",
"signature_type": "Function",
"target": {
"file": "sound/soc/codecs/sma1307.c",
"function": "sma1307_setting_loaded"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8434b8ba437d3f6cbcd9ffe8405bd16ed28fc5c"
}
]