CVE-2024-35887

Source
https://cve.org/CVERecord?id=CVE-2024-35887
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35887.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-35887
Downstream
Related
Published
2024-05-19T08:34:43.507Z
Modified
2026-03-13T07:55:24.055566Z
Summary
ax25: fix use-after-free bugs caused by ax25_ds_del_timer
Details

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

ax25: fix use-after-free bugs caused by ax25dsdel_timer

When the ax25 device is detaching, the ax25devdevicedown() calls ax25dsdeltimer() to cleanup the slavetimer. When the timer handler is running, the ax25dsdeltimer() that calls del_timer() in it will return directly. As a result, the use-after-free bugs could happen, one of the scenarios is shown below:

  (Thread 1)          |      (Thread 2)
                      | ax25_ds_timeout()

ax25devdevicedown() | ax25dsdeltimer() | deltimer() | ax25devput() //FREE | | ax25dev-> //USE

In order to mitigate bugs, when the device is detaching, use timershutdownsync() to stop the timer.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35887.json"
}
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
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Fixed
74204bf9050f7627aead9875fe4e07ba125cb19b
Fixed
c6a368f9c7af4c14b14d390c2543af8001c9bdb9
Fixed
fd819ad3ecf6f3c232a06b27423ce9ed8c20da89

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35887.json"