ghsa-fpr7-5xj6-wq2c
Vulnerability from github
Published
2024-05-21 18:31
Modified
2024-05-21 18:31
Details

In the Linux kernel, the following vulnerability has been resolved:

pwm: Fix double shift bug

These enums are passed to set/test_bit(). The set/test_bit() functions take a bit number instead of a shifted value. Passing a shifted value is a double shift bug like doing BIT(BIT(1)). The double shift bug doesn't cause a problem here because we are only checking 0 and 1 but if the value was 5 or above then it can lead to a buffer overflow.

Show details on source website


{
  "affected": [],
  "aliases": [
    "CVE-2023-52756"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2024-05-21T16:15:15Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\npwm: Fix double shift bug\n\nThese enums are passed to set/test_bit().  The set/test_bit() functions\ntake a bit number instead of a shifted value.  Passing a shifted value\nis a double shift bug like doing BIT(BIT(1)).  The double shift bug\ndoesn\u0027t cause a problem here because we are only checking 0 and 1 but\nif the value was 5 or above then it can lead to a buffer overflow.",
  "id": "GHSA-fpr7-5xj6-wq2c",
  "modified": "2024-05-21T18:31:20Z",
  "published": "2024-05-21T18:31:20Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-52756"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1fb3a9c59e7f7d2b1d737a0d6e02e31d5b516455"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/45d0a298e05adee521f6fe605d6a88341ba07edd"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a7ee519e8095d9c834086d0ff40da11415e1e4d7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a98ff250b5af87f92f17bb9725cb21de1931ee57"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bce1f7c7e9812da57de1dda293cba87c693e9958"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c19a8794bf4fe45cff997f07a75ea84cc9e5d89c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d27abbfd4888d79dd24baf50e774631046ac4732"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e52518b9cb9fc98fc043c8fb2b8cfc619ca8a88b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/eca19db60f99925461f49c3fd743733881395728"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...