In the Linux kernel, the following vulnerability has been resolved:
iio: adc: ad7124: fix division by zero in ad7124setchannel_odr()
In the ad7124writeraw() function, parameter val can potentially be zero. This may lead to a division by zero when DIVROUNDCLOSEST() is called within ad7124setchannelodr(). The ad7124writeraw() function is invoked through the sequence: iiowritechannelraw() -> iiowritechannelattribute() -> iiochannel_write(), with no checks in place to ensure val is non-zero.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f588fffc307a4bc2761aee6ff275bb4b433e451",
"target": {
"file": "drivers/iio/adc/ad7124.c"
},
"digest": {
"line_hashes": [
"299843411613670438673036903698436004922",
"161137682098668569802009627588530443818",
"69724523444901252946802410753557365849",
"57863851138827184159881240454688882744"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2024-50232-0c259740",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0ac0beb4235a9a474f681280a3bd4e2a5bb66569",
"target": {
"function": "ad7124_write_raw",
"file": "drivers/iio/adc/ad7124.c"
},
"digest": {
"function_hash": "12917238866308248542849092428596763206",
"length": 1245.0
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2024-50232-28ae07ef",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f51343f346e6abde094548a7fb34472b0d4cae91",
"target": {
"function": "ad7124_write_raw",
"file": "drivers/iio/adc/ad7124.c"
},
"digest": {
"function_hash": "12917238866308248542849092428596763206",
"length": 1245.0
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2024-50232-3206fade",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95",
"target": {
"file": "drivers/iio/adc/ad7124.c"
},
"digest": {
"line_hashes": [
"299843411613670438673036903698436004922",
"161137682098668569802009627588530443818",
"69724523444901252946802410753557365849",
"57863851138827184159881240454688882744"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2024-50232-775b0870",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efa353ae1b0541981bc96dbf2e586387d0392baa",
"target": {
"function": "ad7124_write_raw",
"file": "drivers/iio/adc/ad7124.c"
},
"digest": {
"function_hash": "12917238866308248542849092428596763206",
"length": 1245.0
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2024-50232-8b457f16",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f51343f346e6abde094548a7fb34472b0d4cae91",
"target": {
"file": "drivers/iio/adc/ad7124.c"
},
"digest": {
"line_hashes": [
"299843411613670438673036903698436004922",
"161137682098668569802009627588530443818",
"69724523444901252946802410753557365849",
"57863851138827184159881240454688882744"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2024-50232-8ca3acaa",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efa353ae1b0541981bc96dbf2e586387d0392baa",
"target": {
"file": "drivers/iio/adc/ad7124.c"
},
"digest": {
"line_hashes": [
"299843411613670438673036903698436004922",
"161137682098668569802009627588530443818",
"69724523444901252946802410753557365849",
"57863851138827184159881240454688882744"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2024-50232-91aa06f9",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95",
"target": {
"function": "ad7124_write_raw",
"file": "drivers/iio/adc/ad7124.c"
},
"digest": {
"function_hash": "12917238866308248542849092428596763206",
"length": 1245.0
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2024-50232-cfdecf2e",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f588fffc307a4bc2761aee6ff275bb4b433e451",
"target": {
"function": "ad7124_write_raw",
"file": "drivers/iio/adc/ad7124.c"
},
"digest": {
"function_hash": "12917238866308248542849092428596763206",
"length": 1245.0
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2024-50232-d851dad3",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0ac0beb4235a9a474f681280a3bd4e2a5bb66569",
"target": {
"file": "drivers/iio/adc/ad7124.c"
},
"digest": {
"line_hashes": [
"299843411613670438673036903698436004922",
"161137682098668569802009627588530443818",
"69724523444901252946802410753557365849",
"57863851138827184159881240454688882744"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2024-50232-ec2de296",
"signature_version": "v1"
}
]