CVE-2022-48801 (GCVE-0-2022-48801)

Vulnerability from cvelistv5 – Published: 2024-07-16 11:43 – Updated: 2026-08-05 08:52
VLAI
Title
iio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL
Summary
In the Linux kernel, the following vulnerability has been resolved: iio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL If we fail to copy the just created file descriptor to userland, we try to clean up by putting back 'fd' and freeing 'ib'. The code uses put_unused_fd() for the former which is wrong, as the file descriptor was already published by fd_install() which gets called internally by anon_inode_getfd(). This makes the error handling code leaving a half cleaned up file descriptor table around and a partially destructed 'file' object, allowing userland to play use-after-free tricks on us, by abusing the still usable fd and making the code operate on a dangling 'file->private_data' pointer. Instead of leaving the kernel in a partially corrupted state, don't attempt to explicitly clean up and leave this to the process exit path that'll release any still valid fds, including the one created by the previous call to anon_inode_getfd(). Simply return -EFAULT to indicate the error.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator (v2.0.3)
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: f73f7f4da581875f9b1f2fb8ebd1ab15ed634488 , < b7f54894aa7517d2b6c797a499b9f491e9db9083 (git)
Affected: f73f7f4da581875f9b1f2fb8ebd1ab15ed634488 , < 202071d2518537866d291aa7cf26af54e674f4d4 (git)
Affected: f73f7f4da581875f9b1f2fb8ebd1ab15ed634488 , < c72ea20503610a4a7ba26c769357d31602769c01 (git)
Create a notification for this product.
Linux Linux Affected: 5.13
Unaffected: 0 , < 5.13 (semver)
Unaffected: 5.15.24 , ≤ 5.15.* (semver)
Unaffected: 5.16.10 , ≤ 5.16.* (semver)
Unaffected: 5.17 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-03T15:25:01.567Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/b7f54894aa7517d2b6c797a499b9f491e9db9083"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/202071d2518537866d291aa7cf26af54e674f4d4"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/c72ea20503610a4a7ba26c769357d31602769c01"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2022-48801",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T16:59:03.540562Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:34:14.374Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/iio/industrialio-buffer.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "b7f54894aa7517d2b6c797a499b9f491e9db9083",
              "status": "affected",
              "version": "f73f7f4da581875f9b1f2fb8ebd1ab15ed634488",
              "versionType": "git"
            },
            {
              "lessThan": "202071d2518537866d291aa7cf26af54e674f4d4",
              "status": "affected",
              "version": "f73f7f4da581875f9b1f2fb8ebd1ab15ed634488",
              "versionType": "git"
            },
            {
              "lessThan": "c72ea20503610a4a7ba26c769357d31602769c01",
              "status": "affected",
              "version": "f73f7f4da581875f9b1f2fb8ebd1ab15ed634488",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/iio/industrialio-buffer.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.13"
            },
            {
              "lessThan": "5.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.24",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.16.*",
              "status": "unaffected",
              "version": "5.16.10",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.17",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.24",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.16.10",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.17",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\niio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL\n\nIf we fail to copy the just created file descriptor to userland, we\ntry to clean up by putting back \u0027fd\u0027 and freeing \u0027ib\u0027. The code uses\nput_unused_fd() for the former which is wrong, as the file descriptor\nwas already published by fd_install() which gets called internally by\nanon_inode_getfd().\n\nThis makes the error handling code leaving a half cleaned up file\ndescriptor table around and a partially destructed \u0027file\u0027 object,\nallowing userland to play use-after-free tricks on us, by abusing\nthe still usable fd and making the code operate on a dangling\n\u0027file-\u003eprivate_data\u0027 pointer.\n\nInstead of leaving the kernel in a partially corrupted state, don\u0027t\nattempt to explicitly clean up and leave this to the process exit\npath that\u0027ll release any still valid fds, including the one created\nby the previous call to anon_inode_getfd(). Simply return -EFAULT to\nindicate the error."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The bug is reached via ioctl(IIO_BUFFER_GET_FD_IOCTL) on a local IIO character device (/dev/iio:deviceN); it is not reachable from network packet processing or adjacent-link protocols.\nAC:L - The attacker fully controls the trigger: a PROT_READ userspace page lets copy_from_user succeed then copy_to_user fail, after which put_unused_fd()+kfree(ib) leaves a dangling file-\u003eprivate_data while the installed fd remains usable via fget/fcntl.\nPR:L - No capability checks exist on the open/ioctl path\u2014only filesystem access to the IIO device node. On Android phones and embedded/industrial systems, /dev/iio:device* is commonly group-accessible (e.g., iio/sensor), so a normal unprivileged local user can reach it.\nUI:N - The attacker opens the device and issues the ioctl themselves; no separate victim action is required.\nS:U - This is a standard in-kernel UAF/memory-corruption privilege-escalation path within the host kernel\u0027s security authority, not a VM/IOMMU/sandbox boundary crossing.\nC:H - The error path frees iio_dev_buffer_pair while file-\u003eprivate_data still points at it; subsequent read/poll on the leaked fd is a classic heap UAF that can be turned into arbitrary kernel memory disclosure.\nI:H - The same dangling private_data is used by write and release (including a double-free on close), enabling heap spray and control-flow hijacking / arbitrary write primitives.\nA:H - Use of the freed object crashes the kernel, and fd-number reuse after the incorrect put_unused_fd() can hit fd_install()\u0027s BUG_ON, causing an oops/panic."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:52:26.711Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/b7f54894aa7517d2b6c797a499b9f491e9db9083"
        },
        {
          "url": "https://git.kernel.org/stable/c/202071d2518537866d291aa7cf26af54e674f4d4"
        },
        {
          "url": "https://git.kernel.org/stable/c/c72ea20503610a4a7ba26c769357d31602769c01"
        }
      ],
      "title": "iio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-48801",
    "datePublished": "2024-07-16T11:43:54.253Z",
    "dateReserved": "2024-07-16T11:38:08.895Z",
    "dateUpdated": "2026-08-05T08:52:26.711Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-48801",
      "date": "2026-08-05",
      "epss": "0.00284",
      "percentile": "0.20514"
    },
    "fkie_nvd": {
      "descriptions": "[{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\niio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL\\n\\nIf we fail to copy the just created file descriptor to userland, we\\ntry to clean up by putting back \u0027fd\u0027 and freeing \u0027ib\u0027. The code uses\\nput_unused_fd() for the former which is wrong, as the file descriptor\\nwas already published by fd_install() which gets called internally by\\nanon_inode_getfd().\\n\\nThis makes the error handling code leaving a half cleaned up file\\ndescriptor table around and a partially destructed \u0027file\u0027 object,\\nallowing userland to play use-after-free tricks on us, by abusing\\nthe still usable fd and making the code operate on a dangling\\n\u0027file-\u003eprivate_data\u0027 pointer.\\n\\nInstead of leaving the kernel in a partially corrupted state, don\u0027t\\nattempt to explicitly clean up and leave this to the process exit\\npath that\u0027ll release any still valid fds, including the one created\\nby the previous call to anon_inode_getfd(). Simply return -EFAULT to\\nindicate the error.\"}, {\"lang\": \"es\", \"value\": \"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iio: buffer: corrige el manejo de errores relacionados con archivos en IIO_BUFFER_GET_FD_IOCTL Si no logramos copiar el descriptor de archivo reci\\u00e9n creado en la zona de usuario, intentamos limpiar colocando de nuevo \u0027fd\u0027 y liberando \u0027 ib\u0027. El c\\u00f3digo usa put_unused_fd() para el primero, lo cual es incorrecto, ya que el descriptor de archivo ya fue publicado por fd_install(), que es llamado internamente por anon_inode_getfd(). Esto hace que el c\\u00f3digo de manejo de errores deje una tabla de descriptores de archivos medio limpia y un objeto \u0027archivo\u0027 parcialmente destruido, lo que permite que Userland nos juegue trucos de use-after-free, abusando del fd a\\u00fan utilizable y haciendo que el c\\u00f3digo funcione en un puntero \u0027archivo-\u0026gt;datos_privados\u0027 colgando. En lugar de dejar el kernel en un estado parcialmente da\\u00f1ado, no intente limpiar expl\\u00edcitamente y dejar esto en la ruta de salida del proceso que liberar\\u00e1 cualquier fds a\\u00fan v\\u00e1lido, incluido el creado por la llamada anterior a anon_inode_getfd(). Simplemente devuelva -EFAULT para indicar el error.\"}]",
      "id": "CVE-2022-48801",
      "lastModified": "2024-11-21T07:34:06.907",
      "published": "2024-07-16T12:15:04.630",
      "references": "[{\"url\": \"https://git.kernel.org/stable/c/202071d2518537866d291aa7cf26af54e674f4d4\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/b7f54894aa7517d2b6c797a499b9f491e9db9083\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/c72ea20503610a4a7ba26c769357d31602769c01\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/202071d2518537866d291aa7cf26af54e674f4d4\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://git.kernel.org/stable/c/b7f54894aa7517d2b6c797a499b9f491e9db9083\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://git.kernel.org/stable/c/c72ea20503610a4a7ba26c769357d31602769c01\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}]",
      "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "vulnStatus": "Awaiting Analysis"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-48801\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-07-16T12:15:04.630\",\"lastModified\":\"2026-08-04T10:17:22.277\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\niio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL\\n\\nIf we fail to copy the just created file descriptor to userland, we\\ntry to clean up by putting back \u0027fd\u0027 and freeing \u0027ib\u0027. The code uses\\nput_unused_fd() for the former which is wrong, as the file descriptor\\nwas already published by fd_install() which gets called internally by\\nanon_inode_getfd().\\n\\nThis makes the error handling code leaving a half cleaned up file\\ndescriptor table around and a partially destructed \u0027file\u0027 object,\\nallowing userland to play use-after-free tricks on us, by abusing\\nthe still usable fd and making the code operate on a dangling\\n\u0027file-\u003eprivate_data\u0027 pointer.\\n\\nInstead of leaving the kernel in a partially corrupted state, don\u0027t\\nattempt to explicitly clean up and leave this to the process exit\\npath that\u0027ll release any still valid fds, including the one created\\nby the previous call to anon_inode_getfd(). Simply return -EFAULT to\\nindicate the error.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iio: buffer: corrige el manejo de errores relacionados con archivos en IIO_BUFFER_GET_FD_IOCTL Si no logramos copiar el descriptor de archivo reci\u00e9n creado en la zona de usuario, intentamos limpiar colocando de nuevo \u0027fd\u0027 y liberando \u0027 ib\u0027. El c\u00f3digo usa put_unused_fd() para el primero, lo cual es incorrecto, ya que el descriptor de archivo ya fue publicado por fd_install(), que es llamado internamente por anon_inode_getfd(). Esto hace que el c\u00f3digo de manejo de errores deje una tabla de descriptores de archivos medio limpia y un objeto \u0027archivo\u0027 parcialmente destruido, lo que permite que Userland nos juegue trucos de use-after-free, abusando del fd a\u00fan utilizable y haciendo que el c\u00f3digo funcione en un puntero \u0027archivo-\u0026gt;datos_privados\u0027 colgando. En lugar de dejar el kernel en un estado parcialmente da\u00f1ado, no intente limpiar expl\u00edcitamente y dejar esto en la ruta de salida del proceso que liberar\u00e1 cualquier fds a\u00fan v\u00e1lido, incluido el creado por la llamada anterior a anon_inode_getfd(). Simplemente devuelva -EFAULT para indicar el error.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/iio/industrialio-buffer.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"f73f7f4da581875f9b1f2fb8ebd1ab15ed634488\",\"lessThan\":\"b7f54894aa7517d2b6c797a499b9f491e9db9083\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f73f7f4da581875f9b1f2fb8ebd1ab15ed634488\",\"lessThan\":\"202071d2518537866d291aa7cf26af54e674f4d4\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f73f7f4da581875f9b1f2fb8ebd1ab15ed634488\",\"lessThan\":\"c72ea20503610a4a7ba26c769357d31602769c01\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/iio/industrialio-buffer.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.13\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.13\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.24\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.16.10\",\"lessThanOrEqual\":\"5.16.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.17\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2024-09-10T16:59:03.540562Z\",\"id\":\"CVE-2022-48801\",\"options\":[{\"exploitation\":\"none\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"partial\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-416\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.13\",\"versionEndExcluding\":\"5.15.24\",\"matchCriteriaId\":\"61670291-2496-4A61-A6FB-88E2748A3D89\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"5.16.10\",\"matchCriteriaId\":\"679523BA-1392-404B-AB85-F5A5408B1ECC\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.17:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"7BD5F8D9-54FA-4CB0-B4F0-CB0471FDDB2D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.17:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"E6E34B23-78B4-4516-9BD8-61B33F4AC49A\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.17:rc3:*:*:*:*:*:*\",\"matchCriteriaId\":\"C030FA3D-03F4-4FB9-9DBF-D08E5CAC51AA\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/202071d2518537866d291aa7cf26af54e674f4d4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/b7f54894aa7517d2b6c797a499b9f491e9db9083\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/c72ea20503610a4a7ba26c769357d31602769c01\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/202071d2518537866d291aa7cf26af54e674f4d4\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/b7f54894aa7517d2b6c797a499b9f491e9db9083\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/c72ea20503610a4a7ba26c769357d31602769c01\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-08-04T23:00:54+00:00",
      "cve": "CVE-2022-48801",
      "id": "CVE-2022-48801",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:known_affected": "198",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: iio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-48801.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "important",
      "current_release_date": "2026-08-05T01:17:18Z",
      "cve": "CVE-2022-48801",
      "id": "CVE-2022-48801",
      "initial_release_date": "2024-07-17T04:19:13Z",
      "product_status:known_affected": "295",
      "product_status:known_not_affected": "205",
      "product_status:recommended": "426",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-48801",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2022-48801.json",
      "version": "49"
    },
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/b7f54894aa7517d2b6c797a499b9f491e9db9083\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/202071d2518537866d291aa7cf26af54e674f4d4\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/c72ea20503610a4a7ba26c769357d31602769c01\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-03T15:25:01.567Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-48801\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T16:59:03.540562Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:21.537Z\"}}], \"cna\": {\"title\": \"iio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 7.8, \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:L - The bug is reached via ioctl(IIO_BUFFER_GET_FD_IOCTL) on a local IIO character device (/dev/iio:deviceN); it is not reachable from network packet processing or adjacent-link protocols.\\nAC:L - The attacker fully controls the trigger: a PROT_READ userspace page lets copy_from_user succeed then copy_to_user fail, after which put_unused_fd()+kfree(ib) leaves a dangling file-\u003eprivate_data while the installed fd remains usable via fget/fcntl.\\nPR:L - No capability checks exist on the open/ioctl path\\u2014only filesystem access to the IIO device node. On Android phones and embedded/industrial systems, /dev/iio:device* is commonly group-accessible (e.g., iio/sensor), so a normal unprivileged local user can reach it.\\nUI:N - The attacker opens the device and issues the ioctl themselves; no separate victim action is required.\\nS:U - This is a standard in-kernel UAF/memory-corruption privilege-escalation path within the host kernel\u0027s security authority, not a VM/IOMMU/sandbox boundary crossing.\\nC:H - The error path frees iio_dev_buffer_pair while file-\u003eprivate_data still points at it; subsequent read/poll on the leaked fd is a classic heap UAF that can be turned into arbitrary kernel memory disclosure.\\nI:H - The same dangling private_data is used by write and release (including a double-free on close), enabling heap spray and control-flow hijacking / arbitrary write primitives.\\nA:H - Use of the freed object crashes the kernel, and fd-number reuse after the incorrect put_unused_fd() can hit fd_install()\u0027s BUG_ON, causing an oops/panic.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"f73f7f4da581875f9b1f2fb8ebd1ab15ed634488\", \"lessThan\": \"b7f54894aa7517d2b6c797a499b9f491e9db9083\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f73f7f4da581875f9b1f2fb8ebd1ab15ed634488\", \"lessThan\": \"202071d2518537866d291aa7cf26af54e674f4d4\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f73f7f4da581875f9b1f2fb8ebd1ab15ed634488\", \"lessThan\": \"c72ea20503610a4a7ba26c769357d31602769c01\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/iio/industrialio-buffer.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.13\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.13\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.15.24\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"5.16.10\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.16.*\"}, {\"status\": \"unaffected\", \"version\": \"5.17\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/iio/industrialio-buffer.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/b7f54894aa7517d2b6c797a499b9f491e9db9083\"}, {\"url\": \"https://git.kernel.org/stable/c/202071d2518537866d291aa7cf26af54e674f4d4\"}, {\"url\": \"https://git.kernel.org/stable/c/c72ea20503610a4a7ba26c769357d31602769c01\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\niio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL\\n\\nIf we fail to copy the just created file descriptor to userland, we\\ntry to clean up by putting back \u0027fd\u0027 and freeing \u0027ib\u0027. The code uses\\nput_unused_fd() for the former which is wrong, as the file descriptor\\nwas already published by fd_install() which gets called internally by\\nanon_inode_getfd().\\n\\nThis makes the error handling code leaving a half cleaned up file\\ndescriptor table around and a partially destructed \u0027file\u0027 object,\\nallowing userland to play use-after-free tricks on us, by abusing\\nthe still usable fd and making the code operate on a dangling\\n\u0027file-\u003eprivate_data\u0027 pointer.\\n\\nInstead of leaving the kernel in a partially corrupted state, don\u0027t\\nattempt to explicitly clean up and leave this to the process exit\\npath that\u0027ll release any still valid fds, including the one created\\nby the previous call to anon_inode_getfd(). Simply return -EFAULT to\\nindicate the error.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.24\", \"versionStartIncluding\": \"5.13\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.16.10\", \"versionStartIncluding\": \"5.13\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.17\", \"versionStartIncluding\": \"5.13\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T08:52:26.711Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-48801\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-05T08:52:26.711Z\", \"dateReserved\": \"2024-07-16T11:38:08.895Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-07-16T11:43:54.253Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…