# CVE-2024-38602: ax25: Fix reference count leak issues of ax25\_dev

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2024-06-19T13:48:13.768Z
- **Modified:** 2026-06-17T07:40:41.457Z

## Who should check

- Anyone running Linux \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< ae467750a3765dd1092eb29f58247950a2f9b60c; \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< 38eb01edfdaa1562fa00429be2e33f45383b1b3a; \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< 81d8240b0a243b3ddd8fa8aa172f1acc2f7cc8f3; \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< 1ea02699c7557eeb35ccff2bd822de1b3e09d868; \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< b505e0319852b08a3a716b64620168eab21f4ced; ef0a2a0565727a48f2e36a2c461f8b1e3a61922d; e2b558fe507a1ed4c43db2b0057fc6e41f20a14c; 418993bbaafb0cd48f904ba68eeda052d624c821; 5ea00fc60676c0eebfa8560ec461209d638bca9d; 9af0fd5c4453a44c692be0cbb3724859b75d739b; …
- Anyone running Linux 5.17

## Description

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

ax25: Fix reference count leak issues of ax25\_dev

The ax25\_addr\_ax25dev() and ax25\_dev\_device\_down() exist a reference
count leak issue of the object "ax25\_dev".

Memory leak issue in ax25\_addr\_ax25dev():

The reference count of the object "ax25\_dev" can be increased multiple
times in ax25\_addr\_ax25dev(). This will cause a memory leak.

Memory leak issues in ax25\_dev\_device\_down():

The reference count of ax25\_dev is set to 1 in ax25\_dev\_device\_up() and
then increase the reference count when ax25\_dev is added to ax25\_dev\_list.
As a result, the reference count of ax25\_dev is 2. But when the device is
shutting down. The ax25\_dev\_device\_down() drops the reference count once
or twice depending on if we goto unlock\_put or not, which will cause
memory leak.

As for the issue of ax25\_addr\_ax25dev(), it is impossible for one pointer
to be on a list twice. So add a break in ax25\_addr\_ax25dev(). As for the
issue of ax25\_dev\_device\_down(), increase the reference count of ax25\_dev
once in ax25\_dev\_device\_up() and decrease the reference count of ax25\_dev
after it is removed from the ax25\_dev\_list.

## Affected and fixed versions

- Linux: \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< ae467750a3765dd1092eb29f58247950a2f9b60c; \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< 38eb01edfdaa1562fa00429be2e33f45383b1b3a; \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< 81d8240b0a243b3ddd8fa8aa172f1acc2f7cc8f3; \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< 1ea02699c7557eeb35ccff2bd822de1b3e09d868; \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< b505e0319852b08a3a716b64620168eab21f4ced; ef0a2a0565727a48f2e36a2c461f8b1e3a61922d; e2b558fe507a1ed4c43db2b0057fc6e41f20a14c; 418993bbaafb0cd48f904ba68eeda052d624c821; 5ea00fc60676c0eebfa8560ec461209d638bca9d; 9af0fd5c4453a44c692be0cbb3724859b75d739b; … (cvelist)
- Linux: 5.17 (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-2024-38602. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-38602.md
Affected: Linux >= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, < ae467750a3765dd1092eb29f58247950a2f9b60c; >= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, < 38eb01edfdaa1562fa00429be2e33f45383b1b3a; >= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, < 81d8240b0a243b3ddd8fa8aa172f1acc2f7cc8f3; >= d01ffb9eee4af165d83b08d…
Fixed in: Linux 38eb01edfdaa1562fa00429be2e33f45383b1b3a, Linux 81d8240b0a243b3ddd8fa8aa172f1acc2f7cc8f3, Linux 1ea02699c7557eeb35ccff2bd822de1b3e09d868

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-2024-38602 being exploited?

There is no confirmed exploitation: CVE-2024-38602 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-2024-38602?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-38602?

Linux \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< ae467750a3765dd1092eb29f58247950a2f9b60c; \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< 38eb01edfdaa1562fa00429be2e33f45383b1b3a; \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< 81d8240b0a243b3ddd8fa8aa172f1acc2f7cc8f3; \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< 1ea02699c7557eeb35ccff2bd822de1b3e09d868; \>= d01ffb9eee4af165d83b08dd73ebdf9fe94a519b, \< b505e0319852b08a3a716b64620168eab21f4ced; ef0a2a0565727a48f2e36a2c461f8b1e3a61922d; e2b558fe507a1ed4c43db2b0057fc6e41f20a14c; 418993bbaafb0cd48f904ba68eeda052d624c821; 5ea00fc60676c0eebfa8560ec461209d638bca9d; 9af0fd5c4453a44c692be0cbb3724859b75d739b; …; Linux 5.17.

### Is there a fix for CVE-2024-38602?

Yes. Fixed in Linux 38eb01edfdaa1562fa00429be2e33f45383b1b3a, Linux 81d8240b0a243b3ddd8fa8aa172f1acc2f7cc8f3, Linux 1ea02699c7557eeb35ccff2bd822de1b3e09d868. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-38602?

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

- patch: <https://git.kernel.org/stable/c/ae467750a3765dd1092eb29f58247950a2f9b60c>
- patch: <https://git.kernel.org/stable/c/38eb01edfdaa1562fa00429be2e33f45383b1b3a>
- patch: <https://git.kernel.org/stable/c/81d8240b0a243b3ddd8fa8aa172f1acc2f7cc8f3>
- patch: <https://git.kernel.org/stable/c/1ea02699c7557eeb35ccff2bd822de1b3e09d868>
- patch: <https://git.kernel.org/stable/c/b505e0319852b08a3a716b64620168eab21f4ced>

## 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-2024-38602>

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