{"id":"CVE-2026-64251","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-07-24T16:16:54.713","lastModified":"2026-11-08T20:10:00.187","vulnStatus":"Analyzed","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\npwrseq: core: fix use-after-free in pwrseq_debugfs_seq_next()\n\npwrseq_debugfs_seq_next() declares 'next' with __free(put_device),\nwhich causes put_device() to be called on the returned pointer when\nthe variable goes out of scope.  This results in a use-after-free\nsince the seq_file framework receives a pointer whose reference has\nalready been dropped.\n\nSimply removing __free(put_device) would fix the UAF but would leak\nthe reference acquired by bus_find_next_device(), as stop() only\ncalls up_read(&pwrseq_sem) and never releases the device reference.\n\nFix this by making the reference counting consistent across all\nseq_file callbacks, matching the standard pattern used by PCI and\nSCSI:\n\n- start(): use get_device() so it returns a referenced pointer.\n- next(): explicitly put_device(curr) to release the previous\n  device's reference (no NULL check needed - the seq_file framework\n  only calls next() while the previous return was non-NULL).\n- stop(): put_device(data) to release the last iterated device's\n  reference, with a NULL guard since stop() may be called with NULL\n  when start() returned NULL or next() reached end-of-sequence."},{"lang":"es","value":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\npwrseq: core: corrección de uso después de liberación en pwrseq_debugfs_seq_next()\n\npwrseq_debugfs_seq_next() declara ’next’ con __free(put_device), lo que provoca que se llame a put_device() en el puntero devuelto cuando la variable sale de ámbito. Esto resulta en un uso después de liberación ya que el framework seq_file recibe un puntero cuya referencia ya ha sido liberada.\n\nSimplemente eliminar __free(put_device) corregiría el UAF pero fugaría la referencia adquirida por bus_find_next_device(), ya que stop() solo llama a up_read(&pwrseq_sem) y nunca libera la referencia del dispositivo.\n\nCorregir esto haciendo que el conteo de referencias sea consistente en todas las retrollamadas de seq_file, coincidiendo con el patrón estándar utilizado por PCI y SCSI:\n\n- start(): usar get_device() para que devuelva un puntero referenciado.\n- next(): llamar explícitamente a put_device(curr) para liberar la referencia del dispositivo anterior (no se necesita comprobación de NULL - el framework seq_file solo llama a next() mientras el retorno anterior no era NULL).\n- stop(): llamar a put_device(data) para liberar la referencia del último dispositivo iterado, con una protección contra NULL ya que stop() puede ser llamado con NULL cuando start() devolvió NULL o next() alcanzó el fin de secuencia."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/power/sequencing/core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"249ebf3f65f8530beb2cbfb91bff1d83ba88d23c","lessThan":"ba0b9f04c7a5f9887b8ce672eaf049502c0548ec","versionType":"git","status":"affected"},{"version":"249ebf3f65f8530beb2cbfb91bff1d83ba88d23c","lessThan":"e91df6d273445c03f5aa302bfe147eda33d45794","versionType":"git","status":"affected"},{"version":"249ebf3f65f8530beb2cbfb91bff1d83ba88d23c","lessThan":"73569a44fca2992f0ca4a4c0104069741b9873a0","versionType":"git","status":"affected"},{"version":"249ebf3f65f8530beb2cbfb91bff1d83ba88d23c","lessThan":"257595adf9dac15ae1edd9d07753fbc576a7583d","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/power/sequencing/core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.11","status":"affected"},{"version":"0","lessThan":"6.11","versionType":"semver","status":"unaffected"},{"version":"6.12.95","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.38","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.1.3","lessThanOrEqual":"7.1.*","versionType":"semver","status":"unaffected"},{"version":"7.2","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}]},"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":"6.11","versionEndExcluding":"6.12.95","matchCriteriaId":"366244A3-18F7-431B-A01F-B0A69754C096"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.18.38","matchCriteriaId":"FA591B28-5D62-449E-BDBE-3C9391BF070A"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.1.3","matchCriteriaId":"9526B150-E2B3-4C6F-8AE5-1AF92B75AD9E"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/257595adf9dac15ae1edd9d07753fbc576a7583d","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/73569a44fca2992f0ca4a4c0104069741b9873a0","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/ba0b9f04c7a5f9887b8ce672eaf049502c0548ec","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/e91df6d273445c03f5aa302bfe147eda33d45794","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]}]}