In the Linux kernel, the following vulnerability has been resolved:
ad7780: fix division by zero in ad7780writeraw()
In the ad7780writeraw() , val2 can be zero, which might lead to a division by zero error in DIVROUNDCLOSEST(). The ad7780writeraw() is based on iioinfo's writeraw. While val is explicitly declared that can be zero (in read mode), val2 is not specified to be non-zero.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@afc1e3c00b3f5f0b4f1bc3e974fb9803cb938a90",
"signature_version": "v1",
"signature_type": "Line",
"id": "CVE-2024-56567-17625b1e",
"target": {
"file": "drivers/iio/adc/ad7780.c"
},
"digest": {
"line_hashes": [
"83264396407729218536762795947516929528",
"281143578728100946721021919418638630384",
"173307907857588523798058288085236950790",
"169480404897395048995721342681344111058"
],
"threshold": 0.9
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@022e13518ba6cc1b4fdd291f49e4f57b2d5718e0",
"signature_version": "v1",
"signature_type": "Line",
"id": "CVE-2024-56567-1890d9a4",
"target": {
"file": "drivers/iio/adc/ad7780.c"
},
"digest": {
"line_hashes": [
"83264396407729218536762795947516929528",
"281143578728100946721021919418638630384",
"173307907857588523798058288085236950790",
"169480404897395048995721342681344111058"
],
"threshold": 0.9
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@18fb33df1de83a014d7f784089f9b124facc157f",
"signature_version": "v1",
"signature_type": "Line",
"id": "CVE-2024-56567-22ce37b9",
"target": {
"file": "drivers/iio/adc/ad7780.c"
},
"digest": {
"line_hashes": [
"83264396407729218536762795947516929528",
"281143578728100946721021919418638630384",
"173307907857588523798058288085236950790",
"169480404897395048995721342681344111058"
],
"threshold": 0.9
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f25a9f1df1f6738acf1fa05595fb6060a2c08ff1",
"signature_version": "v1",
"signature_type": "Line",
"id": "CVE-2024-56567-2e9bd84f",
"target": {
"file": "drivers/iio/adc/ad7780.c"
},
"digest": {
"line_hashes": [
"83264396407729218536762795947516929528",
"281143578728100946721021919418638630384",
"173307907857588523798058288085236950790",
"169480404897395048995721342681344111058"
],
"threshold": 0.9
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e3a8ea3d1ada7f707de5d9d504774b4191eab66",
"signature_version": "v1",
"signature_type": "Line",
"id": "CVE-2024-56567-4b609871",
"target": {
"file": "drivers/iio/adc/ad7780.c"
},
"digest": {
"line_hashes": [
"83264396407729218536762795947516929528",
"281143578728100946721021919418638630384",
"173307907857588523798058288085236950790",
"169480404897395048995721342681344111058"
],
"threshold": 0.9
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@afc1e3c00b3f5f0b4f1bc3e974fb9803cb938a90",
"signature_version": "v1",
"signature_type": "Function",
"id": "CVE-2024-56567-58a622d0",
"target": {
"function": "ad7780_write_raw",
"file": "drivers/iio/adc/ad7780.c"
},
"digest": {
"length": 879.0,
"function_hash": "193349809585200457443154014498282994932"
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e3a8ea3d1ada7f707de5d9d504774b4191eab66",
"signature_version": "v1",
"signature_type": "Function",
"id": "CVE-2024-56567-8c3c0ec8",
"target": {
"function": "ad7780_write_raw",
"file": "drivers/iio/adc/ad7780.c"
},
"digest": {
"length": 879.0,
"function_hash": "193349809585200457443154014498282994932"
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68e79b848196a0b0ec006009cc69da1f835d1ae8",
"signature_version": "v1",
"signature_type": "Function",
"id": "CVE-2024-56567-8ca6a67a",
"target": {
"function": "ad7780_write_raw",
"file": "drivers/iio/adc/ad7780.c"
},
"digest": {
"length": 879.0,
"function_hash": "193349809585200457443154014498282994932"
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c174b53e95adf2eece2afc56cd9798374919f99a",
"signature_version": "v1",
"signature_type": "Line",
"id": "CVE-2024-56567-af762035",
"target": {
"file": "drivers/iio/adc/ad7780.c"
},
"digest": {
"line_hashes": [
"83264396407729218536762795947516929528",
"281143578728100946721021919418638630384",
"173307907857588523798058288085236950790",
"169480404897395048995721342681344111058"
],
"threshold": 0.9
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c174b53e95adf2eece2afc56cd9798374919f99a",
"signature_version": "v1",
"signature_type": "Function",
"id": "CVE-2024-56567-b7f4567f",
"target": {
"function": "ad7780_write_raw",
"file": "drivers/iio/adc/ad7780.c"
},
"digest": {
"length": 879.0,
"function_hash": "193349809585200457443154014498282994932"
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@022e13518ba6cc1b4fdd291f49e4f57b2d5718e0",
"signature_version": "v1",
"signature_type": "Function",
"id": "CVE-2024-56567-c8301eb9",
"target": {
"function": "ad7780_write_raw",
"file": "drivers/iio/adc/ad7780.c"
},
"digest": {
"length": 879.0,
"function_hash": "193349809585200457443154014498282994932"
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f25a9f1df1f6738acf1fa05595fb6060a2c08ff1",
"signature_version": "v1",
"signature_type": "Function",
"id": "CVE-2024-56567-d2655ac7",
"target": {
"function": "ad7780_write_raw",
"file": "drivers/iio/adc/ad7780.c"
},
"digest": {
"length": 879.0,
"function_hash": "193349809585200457443154014498282994932"
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@18fb33df1de83a014d7f784089f9b124facc157f",
"signature_version": "v1",
"signature_type": "Function",
"id": "CVE-2024-56567-e3023c5f",
"target": {
"function": "ad7780_write_raw",
"file": "drivers/iio/adc/ad7780.c"
},
"digest": {
"length": 879.0,
"function_hash": "193349809585200457443154014498282994932"
},
"deprecated": false
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68e79b848196a0b0ec006009cc69da1f835d1ae8",
"signature_version": "v1",
"signature_type": "Line",
"id": "CVE-2024-56567-e5617e90",
"target": {
"file": "drivers/iio/adc/ad7780.c"
},
"digest": {
"line_hashes": [
"83264396407729218536762795947516929528",
"281143578728100946721021919418638630384",
"173307907857588523798058288085236950790",
"169480404897395048995721342681344111058"
],
"threshold": 0.9
},
"deprecated": false
}
]