CVE-2024-56624

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-56624
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56624.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-56624
Downstream
Related
Published
2024-12-27T14:51:27Z
Modified
2025-10-17T18:25:20.342827Z
Summary
iommufd: Fix out_fput in iommufd_fault_alloc()
Details

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

iommufd: Fix outfput in iommufdfault_alloc()

As fput() calls the file->fop->release op, where fault obj and ictx are getting released, there is no need to release these two after fput() one more time, which would result in imbalanced refcounts: refcountt: decrement hit 0; leaking memory. WARNING: CPU: 48 PID: 2369 at lib/refcount.c:31 refcountwarnsaturate+0x60/0x230 Call trace: refcountwarnsaturate+0x60/0x230 (P) refcountwarnsaturate+0x60/0x230 (L) iommufdfaultfopsrelease+0x9c/0xe0 [iommufd] ... VFS: Close: file count is 0 (fop=iommufdfops [iommufd]) WARNING: CPU: 48 PID: 2369 at fs/open.c:1507 filpflush+0x3c/0xf0 Call trace: filpflush+0x3c/0xf0 (P) filpflush+0x3c/0xf0 (L) _arm64sysclose+0x34/0x98 ... imbalanced put on file reference count WARNING: CPU: 48 PID: 2369 at fs/file.c:74 _filerefput+0x100/0x138 Call trace: _filerefput+0x100/0x138 (P) _filerefput+0x100/0x138 (L) _fputsync+0x4c/0xd0

Drop those two lines to fix the warnings above.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
07838f7fd529c8a6de44b601d4b7057e6c8d36ed
Fixed
2b3f30c8edbf9a122ce01f13f0f41fbca5f1d41d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
07838f7fd529c8a6de44b601d4b7057e6c8d36ed
Fixed
af7f4780514f850322b2959032ecaa96e4b26472

Affected versions

v6.*

v6.10
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.12.1
v6.12.2
v6.12.3
v6.12.4
v6.13-rc1

Database specific

vanir_signatures

[
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "201133933214389869207365209265155828509",
                "48546815371032801088879330528293635801",
                "17154678314192657719611386338519288840",
                "46054519517103031150789658257126256838",
                "259120365720777910266281913372512607068"
            ]
        },
        "target": {
            "file": "drivers/iommu/iommufd/fault.c"
        },
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@af7f4780514f850322b2959032ecaa96e4b26472",
        "signature_version": "v1",
        "id": "CVE-2024-56624-14b49f32"
    },
    {
        "digest": {
            "length": 1185.0,
            "function_hash": "9162579243831811206054069076341886525"
        },
        "target": {
            "function": "iommufd_fault_alloc",
            "file": "drivers/iommu/iommufd/fault.c"
        },
        "signature_type": "Function",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@af7f4780514f850322b2959032ecaa96e4b26472",
        "signature_version": "v1",
        "id": "CVE-2024-56624-18066b48"
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "201133933214389869207365209265155828509",
                "48546815371032801088879330528293635801",
                "17154678314192657719611386338519288840",
                "46054519517103031150789658257126256838",
                "259120365720777910266281913372512607068"
            ]
        },
        "target": {
            "file": "drivers/iommu/iommufd/fault.c"
        },
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2b3f30c8edbf9a122ce01f13f0f41fbca5f1d41d",
        "signature_version": "v1",
        "id": "CVE-2024-56624-64cc233b"
    },
    {
        "digest": {
            "length": 1185.0,
            "function_hash": "9162579243831811206054069076341886525"
        },
        "target": {
            "function": "iommufd_fault_alloc",
            "file": "drivers/iommu/iommufd/fault.c"
        },
        "signature_type": "Function",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2b3f30c8edbf9a122ce01f13f0f41fbca5f1d41d",
        "signature_version": "v1",
        "id": "CVE-2024-56624-b52d14a1"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.11.0
Fixed
6.12.5