{"id":"CVE-2023-53608","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2025-10-04T16:15:57.527","lastModified":"2026-08-04T10:19:14.360","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix potential UAF of struct nilfs_sc_info in nilfs_segctor_thread()\n\nThe finalization of nilfs_segctor_thread() can race with\nnilfs_segctor_kill_thread() which terminates that thread, potentially\ncausing a use-after-free BUG as KASAN detected.\n\nAt the end of nilfs_segctor_thread(), it assigns NULL to \"sc_task\" member\nof \"struct nilfs_sc_info\" to indicate the thread has finished, and then\nnotifies nilfs_segctor_kill_thread() of this using waitqueue\n\"sc_wait_task\" on the struct nilfs_sc_info.\n\nHowever, here, immediately after the NULL assignment to \"sc_task\", it is\npossible that nilfs_segctor_kill_thread() will detect it and return to\ncontinue the deallocation, freeing the nilfs_sc_info structure before the\nthread does the notification.\n\nThis fixes the issue by protecting the NULL assignment to \"sc_task\" and\nits notification, with spinlock \"sc_state_lock\" of the struct\nnilfs_sc_info.  Since nilfs_segctor_kill_thread() does a final check to\nsee if \"sc_task\" is NULL with \"sc_state_lock\" locked, this can eliminate\nthe race."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["fs/nilfs2/segment.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453","lessThan":"034cce77d52ba013ce62b4f5258c29907eb1ada5","versionType":"git","status":"affected"},{"version":"9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453","lessThan":"0dbf0e64b91ee8fcb278aea93eb06fc7d56ecbcc","versionType":"git","status":"affected"},{"version":"9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453","lessThan":"613bf23c070d11c525268f2945aa594704a9b764","versionType":"git","status":"affected"},{"version":"9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453","lessThan":"f32297dba338dc06d62286dedb3cdbd5175b1719","versionType":"git","status":"affected"},{"version":"9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453","lessThan":"92684e02654c91a61a0b0561433b710bcece19fe","versionType":"git","status":"affected"},{"version":"9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453","lessThan":"bae009a2f1b7c2011d2e92d8c84868d315c0b97e","versionType":"git","status":"affected"},{"version":"9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453","lessThan":"b4d80bd6370b81a1725b6b8f7894802c23a14e9f","versionType":"git","status":"affected"},{"version":"9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453","lessThan":"6be49d100c22ffea3287a4b19d7639d259888e33","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["fs/nilfs2/segment.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"2.6.30","status":"affected"},{"version":"0","lessThan":"2.6.30","versionType":"semver","status":"unaffected"},{"version":"4.14.313","lessThanOrEqual":"4.14.*","versionType":"semver","status":"unaffected"},{"version":"4.19.281","lessThanOrEqual":"4.19.*","versionType":"semver","status":"unaffected"},{"version":"5.4.241","lessThanOrEqual":"5.4.*","versionType":"semver","status":"unaffected"},{"version":"5.10.178","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.107","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.1.24","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.2.11","lessThanOrEqual":"6.2.*","versionType":"semver","status":"unaffected"},{"version":"6.3","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9},{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-416"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.30","versionEndExcluding":"4.14.313","matchCriteriaId":"C7897F33-089A-45DB-B407-301671DC567B"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"4.19.281","matchCriteriaId":"FA9A5EE5-EA8C-4F9C-8205-020D45B82C9B"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"5.4.241","matchCriteriaId":"A6C89301-5E43-4A77-878F-AC2043FD2741"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.10.178","matchCriteriaId":"896B51EF-6427-4DFF-A2CA-819B349840A1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.107","matchCriteriaId":"6BCC0C73-754E-4985-A087-F74888650709"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.1.24","matchCriteriaId":"E6EC432F-985F-450F-954E-7EAD42ADA1F8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.2.11","matchCriteriaId":"93C03C9A-798F-4CD5-912F-A436BFA0CC7E"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.3:rc1:*:*:*:*:*:*","matchCriteriaId":"B8E3B0E8-FA27-4305-87BB-AF6C25B160CB"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.3:rc2:*:*:*:*:*:*","matchCriteriaId":"A47F0FC3-CE52-4BA1-BA51-22F783938431"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.3:rc3:*:*:*:*:*:*","matchCriteriaId":"3583026A-27EC-4A4C-850A-83F2AF970673"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.3:rc4:*:*:*:*:*:*","matchCriteriaId":"DC271202-7570-4505-89A4-D602D47BFD00"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.3:rc5:*:*:*:*:*:*","matchCriteriaId":"D413BB6D-4F74-4C7D-9163-47786619EF53"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/034cce77d52ba013ce62b4f5258c29907eb1ada5","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/0dbf0e64b91ee8fcb278aea93eb06fc7d56ecbcc","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/613bf23c070d11c525268f2945aa594704a9b764","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/6be49d100c22ffea3287a4b19d7639d259888e33","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/92684e02654c91a61a0b0561433b710bcece19fe","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/b4d80bd6370b81a1725b6b8f7894802c23a14e9f","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/bae009a2f1b7c2011d2e92d8c84868d315c0b97e","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/f32297dba338dc06d62286dedb3cdbd5175b1719","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]}]}