cve-2022-48806
Vulnerability from cvelistv5
Published
2024-07-16 11:43
Modified
2024-12-19 08:08
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: eeprom: ee1004: limit i2c reads to I2C_SMBUS_BLOCK_MAX Commit effa453168a7 ("i2c: i801: Don't silently correct invalid transfer size") revealed that ee1004_eeprom_read() did not properly limit how many bytes to read at once. In particular, i2c_smbus_read_i2c_block_data_or_emulated() takes the length to read as an u8. If count == 256 after taking into account the offset and page boundary, the cast to u8 overflows. And this is common when user space tries to read the entire EEPROM at once. To fix it, limit each read to I2C_SMBUS_BLOCK_MAX (32) bytes, already the maximum length i2c_smbus_read_i2c_block_data_or_emulated() allows.
Impacted products
Vendor Product Version
Linux Linux Version: aca56c298e2a6d20ab6308e203a8d37f2a7759d3
Version: 25714ad6bf5e98025579fa4c08ff2041a663910c
Version: be9313f755a7bfa02230b15731d07074d5255ecb
Version: 07d9beb6e3c2e852e884113d6803ea4b3643ae38
Version: effa453168a7eeb8a562ff4edc1dbf9067360a61
Create a notification for this product.
   Linux Linux Version: 5.4.174   
Version: 5.10.94   
Version: 5.15.17   
Version: 5.16.3   
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-03T15:25:01.645Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/3937c35493ee2847aaefcfa5460e94b7443eef49"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/a37960df7eac3cc8094bd1ab84864e9e32c91345"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/9a5f471ae380f9fcb9756d453c12ca1f8595a93c"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/9443ddeb3754e9e382a396b50adc1961301713ce"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/c0689e46be23160d925dca95dfc411f1a0462708"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2022-48806",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T16:58:47.691859Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:34:13.770Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/misc/eeprom/ee1004.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3937c35493ee2847aaefcfa5460e94b7443eef49",
              "status": "affected",
              "version": "aca56c298e2a6d20ab6308e203a8d37f2a7759d3",
              "versionType": "git"
            },
            {
              "lessThan": "a37960df7eac3cc8094bd1ab84864e9e32c91345",
              "status": "affected",
              "version": "25714ad6bf5e98025579fa4c08ff2041a663910c",
              "versionType": "git"
            },
            {
              "lessThan": "9a5f471ae380f9fcb9756d453c12ca1f8595a93c",
              "status": "affected",
              "version": "be9313f755a7bfa02230b15731d07074d5255ecb",
              "versionType": "git"
            },
            {
              "lessThan": "9443ddeb3754e9e382a396b50adc1961301713ce",
              "status": "affected",
              "version": "07d9beb6e3c2e852e884113d6803ea4b3643ae38",
              "versionType": "git"
            },
            {
              "lessThan": "c0689e46be23160d925dca95dfc411f1a0462708",
              "status": "affected",
              "version": "effa453168a7eeb8a562ff4edc1dbf9067360a61",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/misc/eeprom/ee1004.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5.4.180",
              "status": "affected",
              "version": "5.4.174",
              "versionType": "semver"
            },
            {
              "lessThan": "5.10.101",
              "status": "affected",
              "version": "5.10.94",
              "versionType": "semver"
            },
            {
              "lessThan": "5.15.24",
              "status": "affected",
              "version": "5.15.17",
              "versionType": "semver"
            },
            {
              "lessThan": "5.16.10",
              "status": "affected",
              "version": "5.16.3",
              "versionType": "semver"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\neeprom: ee1004: limit i2c reads to I2C_SMBUS_BLOCK_MAX\n\nCommit effa453168a7 (\"i2c: i801: Don\u0027t silently correct invalid transfer\nsize\") revealed that ee1004_eeprom_read() did not properly limit how\nmany bytes to read at once.\n\nIn particular, i2c_smbus_read_i2c_block_data_or_emulated() takes the\nlength to read as an u8.  If count == 256 after taking into account the\noffset and page boundary, the cast to u8 overflows.  And this is common\nwhen user space tries to read the entire EEPROM at once.\n\nTo fix it, limit each read to I2C_SMBUS_BLOCK_MAX (32) bytes, already\nthe maximum length i2c_smbus_read_i2c_block_data_or_emulated() allows."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2024-12-19T08:08:05.560Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/3937c35493ee2847aaefcfa5460e94b7443eef49"
        },
        {
          "url": "https://git.kernel.org/stable/c/a37960df7eac3cc8094bd1ab84864e9e32c91345"
        },
        {
          "url": "https://git.kernel.org/stable/c/9a5f471ae380f9fcb9756d453c12ca1f8595a93c"
        },
        {
          "url": "https://git.kernel.org/stable/c/9443ddeb3754e9e382a396b50adc1961301713ce"
        },
        {
          "url": "https://git.kernel.org/stable/c/c0689e46be23160d925dca95dfc411f1a0462708"
        }
      ],
      "title": "eeprom: ee1004: limit i2c reads to I2C_SMBUS_BLOCK_MAX",
      "x_generator": {
        "engine": "bippy-5f407fcff5a0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-48806",
    "datePublished": "2024-07-16T11:43:57.598Z",
    "dateReserved": "2024-07-16T11:38:08.896Z",
    "dateUpdated": "2024-12-19T08:08:05.560Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-48806\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-07-16T12:15:04.980\",\"lastModified\":\"2024-11-21T07:34:07.470\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\neeprom: ee1004: limit i2c reads to I2C_SMBUS_BLOCK_MAX\\n\\nCommit effa453168a7 (\\\"i2c: i801: Don\u0027t silently correct invalid transfer\\nsize\\\") revealed that ee1004_eeprom_read() did not properly limit how\\nmany bytes to read at once.\\n\\nIn particular, i2c_smbus_read_i2c_block_data_or_emulated() takes the\\nlength to read as an u8.  If count == 256 after taking into account the\\noffset and page boundary, the cast to u8 overflows.  And this is common\\nwhen user space tries to read the entire EEPROM at once.\\n\\nTo fix it, limit each read to I2C_SMBUS_BLOCK_MAX (32) bytes, already\\nthe maximum length i2c_smbus_read_i2c_block_data_or_emulated() allows.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se resolvi\u00f3 la siguiente vulnerabilidad: eeprom: ee1004: limitar las lecturas de i2c a I2C_SMBUS_BLOCK_MAX El commit effa453168a7 (\\\"i2c: i801: No corrija silenciosamente el tama\u00f1o de transferencia no v\u00e1lido\\\") revel\u00f3 que ee1004_eeprom_read() no limitaba adecuadamente cu\u00e1ntas bytes para leer a la vez. En particular, i2c_smbus_read_i2c_block_data_or_emulated() toma la longitud para leer como u8. Si el recuento == 256 despu\u00e9s de tener en cuenta el desplazamiento y el l\u00edmite de la p\u00e1gina, la conversi\u00f3n a u8 se desborda. Y esto es com\u00fan cuando el espacio del usuario intenta leer toda la EEPROM a la vez. Para solucionarlo, limite cada lectura a I2C_SMBUS_BLOCK_MAX (32) bytes, ya que la longitud m\u00e1xima que permite i2c_smbus_read_i2c_block_data_or_emulated().\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/3937c35493ee2847aaefcfa5460e94b7443eef49\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9443ddeb3754e9e382a396b50adc1961301713ce\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9a5f471ae380f9fcb9756d453c12ca1f8595a93c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a37960df7eac3cc8094bd1ab84864e9e32c91345\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c0689e46be23160d925dca95dfc411f1a0462708\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3937c35493ee2847aaefcfa5460e94b7443eef49\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/9443ddeb3754e9e382a396b50adc1961301713ce\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/9a5f471ae380f9fcb9756d453c12ca1f8595a93c\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/a37960df7eac3cc8094bd1ab84864e9e32c91345\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/c0689e46be23160d925dca95dfc411f1a0462708\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}",
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/3937c35493ee2847aaefcfa5460e94b7443eef49\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/a37960df7eac3cc8094bd1ab84864e9e32c91345\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/9a5f471ae380f9fcb9756d453c12ca1f8595a93c\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/9443ddeb3754e9e382a396b50adc1961301713ce\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/c0689e46be23160d925dca95dfc411f1a0462708\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-03T15:25:01.645Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-48806\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T16:58:47.691859Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:21.485Z\"}}], \"cna\": {\"title\": \"eeprom: ee1004: limit i2c reads to I2C_SMBUS_BLOCK_MAX\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"aca56c298e2a6d20ab6308e203a8d37f2a7759d3\", \"lessThan\": \"3937c35493ee2847aaefcfa5460e94b7443eef49\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"25714ad6bf5e98025579fa4c08ff2041a663910c\", \"lessThan\": \"a37960df7eac3cc8094bd1ab84864e9e32c91345\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"be9313f755a7bfa02230b15731d07074d5255ecb\", \"lessThan\": \"9a5f471ae380f9fcb9756d453c12ca1f8595a93c\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"07d9beb6e3c2e852e884113d6803ea4b3643ae38\", \"lessThan\": \"9443ddeb3754e9e382a396b50adc1961301713ce\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"effa453168a7eeb8a562ff4edc1dbf9067360a61\", \"lessThan\": \"c0689e46be23160d925dca95dfc411f1a0462708\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/misc/eeprom/ee1004.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.4.174\", \"lessThan\": \"5.4.180\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"5.10.94\", \"lessThan\": \"5.10.101\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"5.15.17\", \"lessThan\": \"5.15.24\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"5.16.3\", \"lessThan\": \"5.16.10\", \"versionType\": \"semver\"}], \"programFiles\": [\"drivers/misc/eeprom/ee1004.c\"], \"defaultStatus\": \"unaffected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/3937c35493ee2847aaefcfa5460e94b7443eef49\"}, {\"url\": \"https://git.kernel.org/stable/c/a37960df7eac3cc8094bd1ab84864e9e32c91345\"}, {\"url\": \"https://git.kernel.org/stable/c/9a5f471ae380f9fcb9756d453c12ca1f8595a93c\"}, {\"url\": \"https://git.kernel.org/stable/c/9443ddeb3754e9e382a396b50adc1961301713ce\"}, {\"url\": \"https://git.kernel.org/stable/c/c0689e46be23160d925dca95dfc411f1a0462708\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\neeprom: ee1004: limit i2c reads to I2C_SMBUS_BLOCK_MAX\\n\\nCommit effa453168a7 (\\\"i2c: i801: Don\u0027t silently correct invalid transfer\\nsize\\\") revealed that ee1004_eeprom_read() did not properly limit how\\nmany bytes to read at once.\\n\\nIn particular, i2c_smbus_read_i2c_block_data_or_emulated() takes the\\nlength to read as an u8.  If count == 256 after taking into account the\\noffset and page boundary, the cast to u8 overflows.  And this is common\\nwhen user space tries to read the entire EEPROM at once.\\n\\nTo fix it, limit each read to I2C_SMBUS_BLOCK_MAX (32) bytes, already\\nthe maximum length i2c_smbus_read_i2c_block_data_or_emulated() allows.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-12-19T08:08:05.560Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-48806\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-12-19T08:08:05.560Z\", \"dateReserved\": \"2024-07-16T11:38:08.896Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-07-16T11:43:57.598Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


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.