Review reviewHigh

CVE-2022-48801

Linux Linux, linux kernel

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 us...

CVSS
7.8
EPSS
0.28%
20.5% percentile
CISA KEV
Not listed
Published
2024.07.16
PRIORITY ASSESSMENT

Review review

The CVSS severity warrants an early asset and exposure review.

Known exploitationNot established by KEV
Exploit probability0.28%
Technical severityCVSS 7.8

Vulnerability overview

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 us...

Affected product and versions

Product
Linux Linux, linux kernel
Affected versions
>= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488 < b7f54894aa7517d2b6c797a499b9f491e9db9083, >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488 < 202071d2518537866d291aa7cf26af54e674f4d4, >= f73f7f4da581875f9b1f2fb8ebd1ab15ed634488 < c72ea20503610a4a7ba26c769357d31602769c01, >= 5.13, >= 5.13 < 5.15.24, >= 5.16 < 5.16.10, 5.17
Fixed versions
5.15.24, 5.16.10

Recommended response sequence

Confirm exposure before applying a vendor-supported change.

Full remediation guide
  1. 1
    Identify

    Confirm that Linux Linux, linux kernel and an affected version are present.

  2. 2
    Prioritize

    Combine exploitation signals with asset exposure and business criticality.

  3. 3
    Remediate

    Follow the vendor advisory or supported update path and preserve rollback options.

  4. 4
    Verify

    Recheck the version, service health, access paths, and relevant logs.

Technical data

CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE
CWE-416
CVE-2022-48801 — Linux Linux, linux kernel | SECUFOCUS NOW