In the Linux kernel, the following vulnerability has been resolved:
iio: adc: at91: call inputfreedevice() on allocated iio_dev
Current implementation of at91tsregister() calls inputfreedeivce() on st->tsinput, however, the err label can be reached before the allocated iiodev is stored to st->tsinput. Thus call inputfreedevice() on input instead of st->tsinput.
[
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 1230.0,
"function_hash": "147359718304529961334017980669148588545"
},
"id": "CVE-2024-57904-44f922eb",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@028a1ba8e3bae593d701aee4f690ce7c195b67d6",
"target": {
"file": "drivers/iio/adc/at91_adc.c",
"function": "at91_ts_register"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"73862838493699637175662969815482693861",
"195993230493312903834416319563894176381",
"278501674646418329564202281222681356579",
"72613004261342228446343154902287246544"
]
},
"id": "CVE-2024-57904-82ca46df",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@028a1ba8e3bae593d701aee4f690ce7c195b67d6",
"target": {
"file": "drivers/iio/adc/at91_adc.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 1230.0,
"function_hash": "147359718304529961334017980669148588545"
},
"id": "CVE-2024-57904-8bc816ed",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@de6a73bad1743e9e81ea5a24c178c67429ff510b",
"target": {
"file": "drivers/iio/adc/at91_adc.c",
"function": "at91_ts_register"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 1230.0,
"function_hash": "147359718304529961334017980669148588545"
},
"id": "CVE-2024-57904-a880a58a",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d115b7f3ddc03b38bb7e8754601556fe9b4fc034",
"target": {
"file": "drivers/iio/adc/at91_adc.c",
"function": "at91_ts_register"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"73862838493699637175662969815482693861",
"195993230493312903834416319563894176381",
"278501674646418329564202281222681356579",
"72613004261342228446343154902287246544"
]
},
"id": "CVE-2024-57904-ad79314a",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d115b7f3ddc03b38bb7e8754601556fe9b4fc034",
"target": {
"file": "drivers/iio/adc/at91_adc.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"73862838493699637175662969815482693861",
"195993230493312903834416319563894176381",
"278501674646418329564202281222681356579",
"72613004261342228446343154902287246544"
]
},
"id": "CVE-2024-57904-d1b68aa5",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@de6a73bad1743e9e81ea5a24c178c67429ff510b",
"target": {
"file": "drivers/iio/adc/at91_adc.c"
}
}
]