# CVE-2025-68324: scsi: imm: Fix use-after-free bug caused by unfinished delayed work

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-18T15:02:49.230Z
- **Modified:** 2026-10-30T13:18:20.967Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< cfd561e8df5f46fc1c9d54885165a60e63831c14; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9a8e53154353580d53f7f86a253927e41294017e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 31ab2aad7a7b7501e904a09bf361e44671f66092; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 48dd41fa2d6c6a0c50e714deeba06ffe7f91961b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9e434426cc23ad5e2aad649327b59aea00294b13; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ab58153ec64fa3fc9aea09ca09dc9322e0b54a7c
- Anyone running Linux 2.6.12

## Description

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

scsi: imm: Fix use-after-free bug caused by unfinished delayed work

The delayed work item 'imm\_tq' is initialized in imm\_attach() and
scheduled via imm\_queuecommand() for processing SCSI commands.  When the
IMM parallel port SCSI host adapter is detached through imm\_detach(),
the imm\_struct device instance is deallocated.

However, the delayed work might still be pending or executing
when imm\_detach() is called, leading to use-after-free bugs
when the work function imm\_interrupt() accesses the already
freed imm\_struct memory.

The race condition can occur as follows:

CPU 0(detach thread)   \| CPU 1
                       \| imm\_queuecommand()
                       \|   imm\_queuecommand\_lck()
imm\_detach()           \|     schedule\_delayed\_work()
  kfree(dev) //FREE    \| imm\_interrupt()
                       \|   dev = container\_of(...) //USE
                           dev-\> //USE

Add disable\_delayed\_work\_sync() in imm\_detach() to guarantee proper
cancellation of the delayed work item before imm\_struct is deallocated.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< cfd561e8df5f46fc1c9d54885165a60e63831c14; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9a8e53154353580d53f7f86a253927e41294017e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 31ab2aad7a7b7501e904a09bf361e44671f66092; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 48dd41fa2d6c6a0c50e714deeba06ffe7f91961b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9e434426cc23ad5e2aad649327b59aea00294b13; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ab58153ec64fa3fc9aea09ca09dc9322e0b54a7c (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-68324. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68324.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < cfd561e8df5f46fc1c9d54885165a60e63831c14; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9a8e53154353580d53f7f86a253927e41294017e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 31ab2aad7a7b7501e904a09bf361e44671f66092; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 9a8e53154353580d53f7f86a253927e41294017e, Linux 31ab2aad7a7b7501e904a09bf361e44671f66092, Linux 48dd41fa2d6c6a0c50e714deeba06ffe7f91961b, Linux 9e434426cc23ad5e2aad649327b59aea00294b13

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-68324 being exploited?

There is no confirmed exploitation: CVE-2025-68324 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-68324?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-68324?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< cfd561e8df5f46fc1c9d54885165a60e63831c14; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9a8e53154353580d53f7f86a253927e41294017e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 31ab2aad7a7b7501e904a09bf361e44671f66092; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 48dd41fa2d6c6a0c50e714deeba06ffe7f91961b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9e434426cc23ad5e2aad649327b59aea00294b13; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ab58153ec64fa3fc9aea09ca09dc9322e0b54a7c; Linux 2.6.12.

### Is there a fix for CVE-2025-68324?

Yes. Fixed in Linux 9a8e53154353580d53f7f86a253927e41294017e, Linux 31ab2aad7a7b7501e904a09bf361e44671f66092, Linux 48dd41fa2d6c6a0c50e714deeba06ffe7f91961b, Linux 9e434426cc23ad5e2aad649327b59aea00294b13. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-68324?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/cfd561e8df5f46fc1c9d54885165a60e63831c14>
- other: <https://git.kernel.org/stable/c/9a8e53154353580d53f7f86a253927e41294017e>
- other: <https://git.kernel.org/stable/c/31ab2aad7a7b7501e904a09bf361e44671f66092>
- other: <https://git.kernel.org/stable/c/48dd41fa2d6c6a0c50e714deeba06ffe7f91961b>
- other: <https://git.kernel.org/stable/c/9e434426cc23ad5e2aad649327b59aea00294b13>
- other: <https://git.kernel.org/stable/c/ab58153ec64fa3fc9aea09ca09dc9322e0b54a7c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-68324>

HTML: <https://flawdb.com/CVE-2025-68324> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-68324>
