{"id":"CVE-2025-21672","published":"2025-01-31T11:25:35Z","modified":"2026-05-11T21:04:12Z","title":"afs: Fix merge preference rule failure condition","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nafs: Fix merge preference rule failure condition\n\nsyzbot reported a lock held when returning to userspace[1].  This is\nbecause if argc is less than 0 and the function returns directly, the held\ninode lock is not released.\n\nFix this by store the error in ret and jump to done to clean up instead of\nreturning directly.\n\n[dh: Modified Lizhi Xu's original patch to make it honour the error code\nfrom afs_split_string()]\n\n[1]\nWARNING: lock held when returning to user space!\n6.13.0-rc3-syzkaller-00209-g499551201b5f #0 Not tainted\n------------------------------------------------\nsyz-executor133/5823 is leaving the kernel with locks still held!\n1 lock held by syz-executor133/5823:\n #0: ffff888071cffc00 (&sb->s_type->i_mutex_key#9){++++}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline]\n #0: ffff888071cffc00 (&sb->s_type->i_mutex_key#9){++++}-{4:4}, at: afs_proc_addr_prefs_write+0x2bb/0x14e0 fs/afs/addr_prefs.c:388","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.0014,"percentile":0.03407,"provenance":"source"},"cwes":[{"id":"CWE-667","name":"Improper Locking"}],"references":[{"url":"https://git.kernel.org/stable/c/22be1d90a6211c88dd093b25d1f3aa974d0d9f9d","tags":[]},{"url":"https://git.kernel.org/stable/c/17a4fde81d3a7478d97d15304a6d61094a10c2e3","tags":[]}],"priority":{"score":4.5,"factors":[{"name":"EPSS percentile","points":0.68},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f94f70d39cc2d54079ebae934862198516315db2, < 22be1d90a6211c88dd093b25d1f3aa974d0d9f9d",">= f94f70d39cc2d54079ebae934862198516315db2, < 17a4fde81d3a7478d97d15304a6d61094a10c2e3"]},{"vendor":"Linux","product":"Linux","versions":["6.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:52:11.531644Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-2621","exploited":false,"provenance":"source"}}