CVE-2024-56567
Vulnerability from cvelistv5
Published
2024-12-27 14:23
Modified
2024-12-27 14:23
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: ad7780: fix division by zero in ad7780_write_raw() In the ad7780_write_raw() , val2 can be zero, which might lead to a division by zero error in DIV_ROUND_CLOSEST(). The ad7780_write_raw() is based on iio_info's write_raw. While val is explicitly declared that can be zero (in read mode), val2 is not specified to be non-zero.
Impacted products
Vendor Product Version
Linux Linux Version: 5.2
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/iio/adc/ad7780.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "18fb33df1de83a014d7f784089f9b124facc157f",
              "status": "affected",
              "version": "9085daa4abcc3a1c19ae4eb00e609842ef28275a",
              "versionType": "git"
            },
            {
              "lessThan": "afc1e3c00b3f5f0b4f1bc3e974fb9803cb938a90",
              "status": "affected",
              "version": "9085daa4abcc3a1c19ae4eb00e609842ef28275a",
              "versionType": "git"
            },
            {
              "lessThan": "68e79b848196a0b0ec006009cc69da1f835d1ae8",
              "status": "affected",
              "version": "9085daa4abcc3a1c19ae4eb00e609842ef28275a",
              "versionType": "git"
            },
            {
              "lessThan": "022e13518ba6cc1b4fdd291f49e4f57b2d5718e0",
              "status": "affected",
              "version": "9085daa4abcc3a1c19ae4eb00e609842ef28275a",
              "versionType": "git"
            },
            {
              "lessThan": "7e3a8ea3d1ada7f707de5d9d504774b4191eab66",
              "status": "affected",
              "version": "9085daa4abcc3a1c19ae4eb00e609842ef28275a",
              "versionType": "git"
            },
            {
              "lessThan": "f25a9f1df1f6738acf1fa05595fb6060a2c08ff1",
              "status": "affected",
              "version": "9085daa4abcc3a1c19ae4eb00e609842ef28275a",
              "versionType": "git"
            },
            {
              "lessThan": "c174b53e95adf2eece2afc56cd9798374919f99a",
              "status": "affected",
              "version": "9085daa4abcc3a1c19ae4eb00e609842ef28275a",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/iio/adc/ad7780.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.2"
            },
            {
              "lessThan": "5.2",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.287",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.231",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.174",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.120",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.64",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.13-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nad7780: fix division by zero in ad7780_write_raw()\n\nIn the ad7780_write_raw() , val2 can be zero, which might lead to a\ndivision by zero error in DIV_ROUND_CLOSEST(). The ad7780_write_raw()\nis based on iio_info\u0027s write_raw. While val is explicitly declared that\ncan be zero (in read mode), val2 is not specified to be non-zero."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2024-12-27T14:23:10.861Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/18fb33df1de83a014d7f784089f9b124facc157f"
        },
        {
          "url": "https://git.kernel.org/stable/c/afc1e3c00b3f5f0b4f1bc3e974fb9803cb938a90"
        },
        {
          "url": "https://git.kernel.org/stable/c/68e79b848196a0b0ec006009cc69da1f835d1ae8"
        },
        {
          "url": "https://git.kernel.org/stable/c/022e13518ba6cc1b4fdd291f49e4f57b2d5718e0"
        },
        {
          "url": "https://git.kernel.org/stable/c/7e3a8ea3d1ada7f707de5d9d504774b4191eab66"
        },
        {
          "url": "https://git.kernel.org/stable/c/f25a9f1df1f6738acf1fa05595fb6060a2c08ff1"
        },
        {
          "url": "https://git.kernel.org/stable/c/c174b53e95adf2eece2afc56cd9798374919f99a"
        }
      ],
      "title": "ad7780: fix division by zero in ad7780_write_raw()",
      "x_generator": {
        "engine": "bippy-5f407fcff5a0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-56567",
    "datePublished": "2024-12-27T14:23:10.861Z",
    "dateReserved": "2024-12-27T14:03:05.996Z",
    "dateUpdated": "2024-12-27T14:23:10.861Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-56567\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-12-27T15:15:15.630\",\"lastModified\":\"2024-12-27T15:15:15.630\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nad7780: fix division by zero in ad7780_write_raw()\\n\\nIn the ad7780_write_raw() , val2 can be zero, which might lead to a\\ndivision by zero error in DIV_ROUND_CLOSEST(). The ad7780_write_raw()\\nis based on iio_info\u0027s write_raw. While val is explicitly declared that\\ncan be zero (in read mode), val2 is not specified to be non-zero.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/022e13518ba6cc1b4fdd291f49e4f57b2d5718e0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/18fb33df1de83a014d7f784089f9b124facc157f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/68e79b848196a0b0ec006009cc69da1f835d1ae8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7e3a8ea3d1ada7f707de5d9d504774b4191eab66\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/afc1e3c00b3f5f0b4f1bc3e974fb9803cb938a90\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c174b53e95adf2eece2afc56cd9798374919f99a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f25a9f1df1f6738acf1fa05595fb6060a2c08ff1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.