{"id":"CVE-2024-42250","summary":"cachefiles: add missing lock protection when polling","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncachefiles: add missing lock protection when polling\n\nAdd missing lock protection in poll routine when iterating xarray,\notherwise:\n\nEven with RCU read lock held, only the slot of the radix tree is\nensured to be pinned there, while the data structure (e.g. struct\ncachefiles_req) stored in the slot has no such guarantee.  The poll\nroutine will iterate the radix tree and dereference cachefiles_req\naccordingly.  Thus RCU read lock is not adequate in this case and\nspinlock is needed here.","modified":"2026-04-02T12:17:53.942230Z","published":"2024-08-07T15:14:33.997Z","related":["SUSE-SU-2024:3194-1","SUSE-SU-2024:3195-1","SUSE-SU-2024:3383-1","SUSE-SU-2025:20044-1","SUSE-SU-2025:20047-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42250.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/6bb6bd3dd6f382dfd36220d4b210a0c77c066651"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8eadcab7f3dd809edbe5ae20533ff843dfea3a07"},{"type":"WEB","url":"https://git.kernel.org/stable/c/97cfd5e20ddc2e33e16ce369626ce76c9a475fd7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cf5bb09e742a9cf6349127e868329a8f69b7a014"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42250.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42250"},{"type":"PACKAGE","url":"https://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":"0e19a18f998dcabe8be590e0b39660a1f230209b"},{"fixed":"97cfd5e20ddc2e33e16ce369626ce76c9a475fd7"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"18943864342705fa18dd4e6b8d608491fec81f6e"},{"fixed":"6bb6bd3dd6f382dfd36220d4b210a0c77c066651"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b817e22b2e91257ace32a6768c3c003faeaa1c5c"},{"fixed":"8eadcab7f3dd809edbe5ae20533ff843dfea3a07"},{"fixed":"cf5bb09e742a9cf6349127e868329a8f69b7a014"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42250.json"}}],"schema_version":"1.7.5"}