In the Linux kernel, the following vulnerability has been resolved:
crypto: safexcel - Add error handling for dmamapsg() calls
Macro dmamapsg() may return 0 on error. This patch enables checks in case of the macro failure and ensures unmapping of previously mapped buffers with dmaunmapsg().
Found by Linux Verification Center (linuxtesting.org) with static analysis tool SVACE.
[
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8084b788c2fb1260f7d44c032d5124680b20d2b2",
"digest": {
"function_hash": "237681995645814133390564562348221158943",
"length": 4573.0
},
"target": {
"function": "safexcel_send_req",
"file": "drivers/crypto/inside-secure/safexcel_cipher.c"
},
"id": "CVE-2023-52687-1e0e2fe6",
"deprecated": false,
"signature_type": "Function"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c0ac81a172a69a7733290915276672787e904ec",
"digest": {
"function_hash": "237681995645814133390564562348221158943",
"length": 4573.0
},
"target": {
"function": "safexcel_send_req",
"file": "drivers/crypto/inside-secure/safexcel_cipher.c"
},
"id": "CVE-2023-52687-931291ee",
"deprecated": false,
"signature_type": "Function"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fc0b785802b856566df3ac943e38a072557001c4",
"digest": {
"line_hashes": [
"1986341372790956543574367231752643705",
"327478727556043600799263552357025537524",
"113142982605306582780924853736735301709",
"229714456849876167106571991017221075075",
"251625974362727604555821710807172676035",
"144679811473536584751681986670771980768",
"224538631134508286805305145314873432855",
"220875622060515969497919846239452161378",
"239666629066610862852971657461893519626",
"279719190891830915311345589917822515537",
"248240519976422100055114711558402486754",
"257442508787370174131983299327396649067",
"55288914184081912546083812959950097309",
"194863336387424225110202698377404022910",
"225159562500802800672327478790747885180",
"1711948326329050495885601428845212370",
"303287880451032470849529971414928778794"
],
"threshold": 0.9
},
"target": {
"file": "drivers/crypto/inside-secure/safexcel_cipher.c"
},
"id": "CVE-2023-52687-935edeee",
"deprecated": false,
"signature_type": "Line"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fc0b785802b856566df3ac943e38a072557001c4",
"digest": {
"function_hash": "237681995645814133390564562348221158943",
"length": 4573.0
},
"target": {
"function": "safexcel_send_req",
"file": "drivers/crypto/inside-secure/safexcel_cipher.c"
},
"id": "CVE-2023-52687-aef4da35",
"deprecated": false,
"signature_type": "Function"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@87e02063d07708cac5bfe9fd3a6a242898758ac8",
"digest": {
"line_hashes": [
"1986341372790956543574367231752643705",
"327478727556043600799263552357025537524",
"113142982605306582780924853736735301709",
"229714456849876167106571991017221075075",
"251625974362727604555821710807172676035",
"144679811473536584751681986670771980768",
"224538631134508286805305145314873432855",
"220875622060515969497919846239452161378",
"239666629066610862852971657461893519626",
"279719190891830915311345589917822515537",
"248240519976422100055114711558402486754",
"257442508787370174131983299327396649067",
"55288914184081912546083812959950097309",
"194863336387424225110202698377404022910",
"225159562500802800672327478790747885180",
"1711948326329050495885601428845212370",
"303287880451032470849529971414928778794"
],
"threshold": 0.9
},
"target": {
"file": "drivers/crypto/inside-secure/safexcel_cipher.c"
},
"id": "CVE-2023-52687-c79d482a",
"deprecated": false,
"signature_type": "Line"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8084b788c2fb1260f7d44c032d5124680b20d2b2",
"digest": {
"line_hashes": [
"1986341372790956543574367231752643705",
"327478727556043600799263552357025537524",
"113142982605306582780924853736735301709",
"229714456849876167106571991017221075075",
"251625974362727604555821710807172676035",
"144679811473536584751681986670771980768",
"224538631134508286805305145314873432855",
"220875622060515969497919846239452161378",
"239666629066610862852971657461893519626",
"279719190891830915311345589917822515537",
"248240519976422100055114711558402486754",
"257442508787370174131983299327396649067",
"55288914184081912546083812959950097309",
"194863336387424225110202698377404022910",
"225159562500802800672327478790747885180",
"1711948326329050495885601428845212370",
"303287880451032470849529971414928778794"
],
"threshold": 0.9
},
"target": {
"file": "drivers/crypto/inside-secure/safexcel_cipher.c"
},
"id": "CVE-2023-52687-cbda27cc",
"deprecated": false,
"signature_type": "Line"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@87e02063d07708cac5bfe9fd3a6a242898758ac8",
"digest": {
"function_hash": "237681995645814133390564562348221158943",
"length": 4573.0
},
"target": {
"function": "safexcel_send_req",
"file": "drivers/crypto/inside-secure/safexcel_cipher.c"
},
"id": "CVE-2023-52687-f35fe4fe",
"deprecated": false,
"signature_type": "Function"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c0ac81a172a69a7733290915276672787e904ec",
"digest": {
"line_hashes": [
"1986341372790956543574367231752643705",
"327478727556043600799263552357025537524",
"113142982605306582780924853736735301709",
"229714456849876167106571991017221075075",
"251625974362727604555821710807172676035",
"144679811473536584751681986670771980768",
"224538631134508286805305145314873432855",
"220875622060515969497919846239452161378",
"239666629066610862852971657461893519626",
"279719190891830915311345589917822515537",
"248240519976422100055114711558402486754",
"257442508787370174131983299327396649067",
"55288914184081912546083812959950097309",
"194863336387424225110202698377404022910",
"225159562500802800672327478790747885180",
"1711948326329050495885601428845212370",
"303287880451032470849529971414928778794"
],
"threshold": 0.9
},
"target": {
"file": "drivers/crypto/inside-secure/safexcel_cipher.c"
},
"id": "CVE-2023-52687-f4b1967a",
"deprecated": false,
"signature_type": "Line"
}
]