Skip to content
Heist/ feed
Back to feed
UnratedFix available

i2c: lpi2c: Avoid calling clk_get_rate during transfer

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: i2c: lpi2c: Avoid calling clk_get_rate during transfer Instead of repeatedly calling clk_get_rate for each transfer, lock the clock rate and cache the value. A deadlock has been observed while adding tlv320aic32x4 audio codec to the system. When this clock provider adds its clock, the clk mutex is locked already, it needs to access i2c, which in return needs the mutex for clk_get_rate as well.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.6.64, 6.9.7
CVEs
CVE-2024-40965
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 08:45 UTC · Revision 1

Source evidence

i2c: lpi2c: Avoid calling clk_get_rate during transfer

core-osv · Original source

Published 12 Jul 2024, 12:32 UTC

In the Linux kernel, the following vulnerability has been resolved: i2c: lpi2c: Avoid calling clk_get_rate during transfer Instead of repeatedly calling clk_get_rate for each transfer, lock the clock rate and cache the value. A deadlock has been observed while adding tlv320aic32x4 audio codec to the system. When this clock provider adds its clock, the clk mutex is locked already, it needs to access i2c, which in return needs the mutex for clk_get_rate as well.

osv:CVE-2024-40965

Kernel

Fixed versions: 6.6.64, 6.9.7

Complete source record
{
  "id": "a6988bd7a9901b93559e9d97d960b9d0baff0276eb3259a11df0183641297a9a",
  "url": "https://osv.dev/vulnerability/CVE-2024-40965",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "i2c: lpi2c: Avoid calling clk_get_rate during transfer",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: i2c: lpi2c: Avoid calling clk_get_rate during transfer Instead of repeatedly calling clk_get_rate for each transfer, lock the clock rate and cache the value. A deadlock has been observed while adding tlv320aic32x4 audio codec to the system. When this clock provider adds its clock, the clk mutex is locked already, it needs to access i2c, which in return needs the mutex for clk_get_rate as well.",
    "evidence": "osv:CVE-2024-40965",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.6.64",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.9.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-40965",
      "aliases": [
        "CVE-2024-40965"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a55fa9d0e42e31b0292540e6324d481aad307644"
                },
                {
                  "fixed": "d038693e08adf9c162c6377800495e4f5a2df045"
                },
                {
                  "fixed": "2b42e9587a7a9c7b824e0feb92958f258263963e"
                },
                {
                  "fixed": "4268254a39484fc11ba991ae148bacbe75d9cc0a"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40965.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.10.0"
                },
                {
                  "fixed": "6.6.64"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.9.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40965.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:34.265556473Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/2b42e9587a7a9c7b824e0feb92958f258263963e",
        "https://git.kernel.org/stable/c/4268254a39484fc11ba991ae148bacbe75d9cc0a",
        "https://git.kernel.org/stable/c/d038693e08adf9c162c6377800495e4f5a2df045",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40965.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-40965",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40965.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-40965",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 501226,
  "published_at": "2024-07-12T12:32:05.453+00:00"
}