# CVE-2023-54134: autofs: fix memory leak of waitqueues in autofs\_catatonic\_mode

> 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.31% (percentile 17, 2026-11-26)
- **Published:** 2025-12-24T13:06:50.627Z
- **Modified:** 2026-06-17T06:46:51.830Z

## Who should check

- Anyone running Linux \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 1985e8eae8627f02e3364690c5fed7af1c46be55; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 976abbdc120a97049b9133e60fa7b29627d11de4; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 6079dc77c6f32936e8a6766ee8334ae3c99f4504; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 69ddafc7a7afd8401bab53eff5af813fa0d368a2; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 71eeddcad7342292c19042c290c477697acaccab; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 726deae613bc1b6096ad3b61cc1e63e33330fbc2; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 696b625f3f85d80fca48c24d2948fbc451e74366; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< ccbe77f7e45dfb4420f7f531b650c00c6e9c7507
- Anyone running Linux 2.6.27

## Description

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

autofs: fix memory leak of waitqueues in autofs\_catatonic\_mode

Syzkaller reports a memory leak:

BUG: memory leak
unreferenced object 0xffff88810b279e00 (size 96):
  comm "syz-executor399", pid 3631, jiffies 4294964921 (age 23.870s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 08 9e 27 0b 81 88 ff ff  ..........'.....
    08 9e 27 0b 81 88 ff ff 00 00 00 00 00 00 00 00  ..'.............
  backtrace:
    \[\<ffffffff814cfc90\>\] kmalloc\_trace+0x20/0x90 mm/slab\_common.c:1046
    \[\<ffffffff81bb75ca\>\] kmalloc include/linux/slab.h:576 \[inline\]
    \[\<ffffffff81bb75ca\>\] autofs\_wait+0x3fa/0x9a0 fs/autofs/waitq.c:378
    \[\<ffffffff81bb88a7\>\] autofs\_do\_expire\_multi+0xa7/0x3e0 fs/autofs/expire.c:593
    \[\<ffffffff81bb8c33\>\] autofs\_expire\_multi+0x53/0x80 fs/autofs/expire.c:619
    \[\<ffffffff81bb6972\>\] autofs\_root\_ioctl\_unlocked+0x322/0x3b0 fs/autofs/root.c:897
    \[\<ffffffff81bb6a95\>\] autofs\_root\_ioctl+0x25/0x30 fs/autofs/root.c:910
    \[\<ffffffff81602a9c\>\] vfs\_ioctl fs/ioctl.c:51 \[inline\]
    \[\<ffffffff81602a9c\>\] \_\_do\_sys\_ioctl fs/ioctl.c:870 \[inline\]
    \[\<ffffffff81602a9c\>\] \_\_se\_sys\_ioctl fs/ioctl.c:856 \[inline\]
    \[\<ffffffff81602a9c\>\] \_\_x64\_sys\_ioctl+0xfc/0x140 fs/ioctl.c:856
    \[\<ffffffff84608225\>\] do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
    \[\<ffffffff84608225\>\] do\_syscall\_64+0x35/0xb0 arch/x86/entry/common.c:80
    \[\<ffffffff84800087\>\] entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

autofs\_wait\_queue structs should be freed if their wait\_ctr becomes zero.
Otherwise they will be lost.

In this case an AUTOFS\_IOC\_EXPIRE\_MULTI ioctl is done, then a new
waitqueue struct is allocated in autofs\_wait(), its initial wait\_ctr
equals 2. After that wait\_event\_killable() is interrupted (it returns
-ERESTARTSYS), so that 'wq-\>name.name == NULL' condition may be not
satisfied. Actually, this condition can be satisfied when
autofs\_wait\_release() or autofs\_catatonic\_mode() is called and, what is
also important, wait\_ctr is decremented in those places. Upon the exit of
autofs\_wait(), wait\_ctr is decremented to 1. Then the unmounting process
begins: kill\_sb calls autofs\_catatonic\_mode(), which should have freed the
waitqueues, but it only decrements its usage counter to zero which is not
a correct behaviour.

edit:imk
This description is of course not correct. The umount performed as a result
of an expire is a umount of a mount that has been automounted, it's not the
autofs mount itself. They happen independently, usually after everything
mounted within the autofs file system has been expired away. If everything
hasn't been expired away the automount daemon can still exit leaving mounts
in place. But expires done in both cases will result in a notification that
calls autofs\_wait\_release() with a result status. The problem case is the
summary execution of of the automount daemon. In this case any waiting
processes won't be woken up until either they are terminated or the mount
is umounted.
end edit: imk

So in catatonic mode we should free waitqueues which counter becomes zero.

edit: imk
Initially I was concerned that the calling of autofs\_wait\_release() and
autofs\_catatonic\_mode() was not mutually exclusive but that can't be the
case (obviously) because the queue entry (or entries) is removed from the
list when either of these two functions are called. Consequently the wait
entry will be freed by only one of these functions or by the woken process
in autofs\_wait() depending on the order of the calls.
end edit: imk

## Affected and fixed versions

- Linux: \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 1985e8eae8627f02e3364690c5fed7af1c46be55; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 976abbdc120a97049b9133e60fa7b29627d11de4; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 6079dc77c6f32936e8a6766ee8334ae3c99f4504; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 69ddafc7a7afd8401bab53eff5af813fa0d368a2; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 71eeddcad7342292c19042c290c477697acaccab; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 726deae613bc1b6096ad3b61cc1e63e33330fbc2; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 696b625f3f85d80fca48c24d2948fbc451e74366; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< ccbe77f7e45dfb4420f7f531b650c00c6e9c7507 (cvelist)
- Linux: 2.6.27 (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-2023-54134. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54134.md
Affected: Linux >= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, < 1985e8eae8627f02e3364690c5fed7af1c46be55; >= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, < 976abbdc120a97049b9133e60fa7b29627d11de4; >= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, < 6079dc77c6f32936e8a6766ee8334ae3c99f4504; >= 296f7bf78bc5c7a4d772aea…
Fixed in: Linux 1985e8eae8627f02e3364690c5fed7af1c46be55, Linux 976abbdc120a97049b9133e60fa7b29627d11de4, Linux 6079dc77c6f32936e8a6766ee8334ae3c99f4504, Linux 69ddafc7a7afd8401bab53eff5af813fa0d368a2, Linux 71eeddcad7342292c19042c290c477697acaccab, Linux 726deae613bc1b6096ad3b61cc1e63e33330fbc2, Linux 696b6…

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-2023-54134 being exploited?

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

### How serious is CVE-2023-54134?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-54134?

Linux \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 1985e8eae8627f02e3364690c5fed7af1c46be55; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 976abbdc120a97049b9133e60fa7b29627d11de4; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 6079dc77c6f32936e8a6766ee8334ae3c99f4504; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 69ddafc7a7afd8401bab53eff5af813fa0d368a2; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 71eeddcad7342292c19042c290c477697acaccab; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 726deae613bc1b6096ad3b61cc1e63e33330fbc2; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< 696b625f3f85d80fca48c24d2948fbc451e74366; \>= 296f7bf78bc5c7a4d772aea580ce800d14040d1a, \< ccbe77f7e45dfb4420f7f531b650c00c6e9c7507; Linux 2.6.27.

### Is there a fix for CVE-2023-54134?

Yes. Fixed in Linux 1985e8eae8627f02e3364690c5fed7af1c46be55, Linux 976abbdc120a97049b9133e60fa7b29627d11de4, Linux 6079dc77c6f32936e8a6766ee8334ae3c99f4504, Linux 69ddafc7a7afd8401bab53eff5af813fa0d368a2, Linux 71eeddcad7342292c19042c290c477697acaccab, Linux 726deae613bc1b6096ad3b61cc1e63e33330fbc2, Linux 696b625f3f85d80fca48c24d2948fbc451e74366. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54134?

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/1985e8eae8627f02e3364690c5fed7af1c46be55>
- other: <https://git.kernel.org/stable/c/976abbdc120a97049b9133e60fa7b29627d11de4>
- other: <https://git.kernel.org/stable/c/6079dc77c6f32936e8a6766ee8334ae3c99f4504>
- other: <https://git.kernel.org/stable/c/69ddafc7a7afd8401bab53eff5af813fa0d368a2>
- other: <https://git.kernel.org/stable/c/71eeddcad7342292c19042c290c477697acaccab>
- other: <https://git.kernel.org/stable/c/726deae613bc1b6096ad3b61cc1e63e33330fbc2>
- other: <https://git.kernel.org/stable/c/696b625f3f85d80fca48c24d2948fbc451e74366>
- other: <https://git.kernel.org/stable/c/ccbe77f7e45dfb4420f7f531b650c00c6e9c7507>

## 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-2023-54134>

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