{"id":"CVE-2026-31630","aliases":["CVE-2026-31630"],"related":[],"kind":"vulnerability","state":"published","title":"rxrpc: proc: size address buffers for %pISpc output","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nrxrpc: proc: size address buffers for %pISpc output\n\nThe AF_RXRPC procfs helpers format local and remote socket addresses into\nfixed 50-byte stack buffers with \"%pISpc\".\n\nThat is too small for the longest current-tree IPv6-with-port form the\nformatter can produce. In lib/vsprintf.c, the compressed IPv6 path uses a\ndotted-quad tail not only for v4mapped addresses, but also for ISATAP\naddresses via ipv6_addr_is_isatap().\n\nAs a result, a case such as\n\n  [ffff:ffff:ffff:ffff:0:5efe:255.255.255.255]:65535\n\nis possible with the current formatter. That is 50 visible characters, so\n51 bytes including the trailing NUL, which does not fit in the existing\nchar[50] buffers used by net/rxrpc/proc.c.\n\nSize the buffers from the formatter's maximum textual form and switch the\ncall sites to scnprintf().\n\nChanges since v1:\n- correct the changelog to cite the actual maximum current-tree case\n  explicitly\n- frame the proof around the ISATAP formatting path instead of the earlier\n  mapped-v4 example","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nrxrpc: proc: size address buffers for %pISpc output\n\nThe AF_RXRPC procfs helpers format local and remote socket addresses into\nfixed 50-byte stack buffers with \"%pISpc\".\n\nThat is too small for the longest current-tree IPv6-with-port form the\nformatter can produce. In lib/vsprintf.c, the compressed IPv6 path uses a\ndotted-quad tail not only for v4mapped addresses, but also for ISATAP\naddresses via ipv6_addr_is_isatap().\n\nAs a result, a case such as\n\n  [ffff:ffff:ffff:ffff:0:5efe:255.255.255.255]:65535\n\nis possible with the current formatter. That is 50 visible characters, so\n51 bytes including the trailing NUL, which does not fit in the existing\nchar[50] buffers used by net/rxrpc/proc.c.\n\nSize the buffers from the formatter's maximum textual form and switch the\ncall sites to scnprintf().\n\nChanges since v1:\n- correct the changelog to cite the actual maximum current-tree case\n  explicitly\n- frame the proof around the ISATAP formatting path instead of the earlier\n  mapped-v4 example","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nrxrpc: proc: dimensionar los búferes de dirección para la salida %pISpc\n\nLos ayudantes de procfs de AF_RXRPC formatean las direcciones de socket locales y remotas en búferes de pila fijos de 50 bytes con ’%pISpc’.\n\nEso es demasiado pequeño para la forma más larga de IPv6 con puerto del árbol actual que el formateador puede producir. En lib/vsprintf.c, la ruta IPv6 comprimida utiliza una cola de cuádruple punteado no solo para direcciones mapeadas a v4, sino también para direcciones ISATAP a través de ipv6_addr_is_isatap().\n\nComo resultado, un caso como\n\n  [ffff:ffff:ffff:ffff:0:5efe:255.255.255.255]:65535\n\nes posible con el formateador actual. Eso son 50 caracteres visibles, por lo tanto, 51 bytes incluyendo el NUL final, lo cual no cabe en los búferes char[50] existentes utilizados por net/rxrpc/proc.c.\n\nDimensionar los búferes a partir de la forma textual máxima del formateador y cambiar los sitios de llamada a scnprintf().\n\nCambios desde la v1:\n- corregir el registro de cambios para citar explícitamente el caso máximo real del árbol actual\n- enmarcar la prueba en torno a la ruta de formateo ISATAP en lugar del ejemplo anterior de v4 mapeado","source":"nvd"}],"published":"2026-04-24T14:44:46.606Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-121"],"affected":[{"ranges":[{"type":"git","introduced":"75b54cb57ca34cbe7a87c6ac757c55360a624590","fixed":"386c86412608d3449006a318a662cbcd6ca1f668","status":"affected"},{"type":"git","introduced":"75b54cb57ca34cbe7a87c6ac757c55360a624590","fixed":"235b2115de892eab2e107a42efa7a4347baaa80b","status":"affected"},{"type":"git","introduced":"75b54cb57ca34cbe7a87c6ac757c55360a624590","fixed":"625af53a1564e31bb2df9adc3739df46137f46c1","status":"affected"},{"type":"git","introduced":"75b54cb57ca34cbe7a87c6ac757c55360a624590","fixed":"808a34cdbe8ce336c202d8ea6d5e48496764dc37","status":"affected"},{"type":"git","introduced":"75b54cb57ca34cbe7a87c6ac757c55360a624590","fixed":"a6042b8066b24dbcc7945616a157d4d43e463668","status":"affected"},{"type":"git","introduced":"75b54cb57ca34cbe7a87c6ac757c55360a624590","fixed":"db297c78ce537c9ac96f0eda9b25ad72c8caefa9","status":"affected"},{"type":"git","introduced":"75b54cb57ca34cbe7a87c6ac757c55360a624590","fixed":"10ebed83f9f6414af4e85bc85ffaeda7effdd874","status":"affected"},{"type":"git","introduced":"75b54cb57ca34cbe7a87c6ac757c55360a624590","fixed":"a44ce6aa2efb61fe44f2cfab72bb01544bbca272","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.9","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.23","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.13","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.9.1","fixed":"6.18.23"},{"status":"affected","introduced":"6.19","fixed":"6.19.13"},{"status":"affected","version":"4.9"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/386c86412608d3449006a318a662cbcd6ca1f668","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/235b2115de892eab2e107a42efa7a4347baaa80b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/625af53a1564e31bb2df9adc3739df46137f46c1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/808a34cdbe8ce336c202d8ea6d5e48496764dc37","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a6042b8066b24dbcc7945616a157d4d43e463668","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/db297c78ce537c9ac96f0eda9b25ad72c8caefa9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/10ebed83f9f6414af4e85bc85ffaeda7effdd874","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a44ce6aa2efb61fe44f2cfab72bb01544bbca272","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:11:18.108Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31630","url":"https://www.cve.org/CVERecord?id=CVE-2026-31630","licence":"CVE Terms of Use","modified":"2026-10-21T12:39:36.441Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31630","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31630","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.523Z","epss":{"score":0.00182,"percentile":0.08079,"date":"2026-12-01T12:00:22.000Z"}}