{"id":"CVE-2024-36288","state":"PUBLISHED","title":"SUNRPC: Fix loop termination condition in gss_free_in_token_pages()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nSUNRPC: Fix loop termination condition in gss_free_in_token_pages()\n\nThe in_token->pages[] array is not NULL terminated. This results in\nthe following KASAN splat:\n\n  KASAN: maybe wild-memory-access in range [0x04a2013400000008-0x04a201340000000f]","publishedAt":"2024-06-21T11:18:46.152Z","updatedAt":"2026-10-15T00:42:20.440Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ab8466d4e26806a4ae82c282762c4545eecf45ef","status":"affected","lessThan":"57ff6c0a175930856213b2aa39f8c845a53e5b1c","versionType":"git"},{"version":"4420b73c7f26fd5fcb37bbce5313dd356ef1b3ca","status":"affected","lessThan":"6ed45d20d30005bed94c8c527ce51d5ad8121018","versionType":"git"},{"version":"f148a95f68c66c1b097391b68e153d5a46f0e780","status":"affected","lessThan":"4cefcd0af7458bdeff56a9d8dfc6868ce23d128a","versionType":"git"},{"version":"fe0b474974fee7af1df286e0edd5a1460c811865","status":"affected","lessThan":"b4878ea99f2b40ef1925720b1b4ca7f4af1ba785","versionType":"git"},{"version":"c1d8c429e4d2ce85ec5c92cf71cb419baf75c56f","status":"affected","lessThan":"af628d43a822b78ad8d4a58d8259f8bf8bc71115","versionType":"git"},{"version":"8ca148915670a2921afcc255af9e1dc80f37b052","status":"affected","lessThan":"0a1cb0c6102bb4fd310243588d39461da49497ad","versionType":"git"},{"version":"bafa6b4d95d97877baa61883ff90f7e374427fae","status":"affected","lessThan":"4a77c3dead97339478c7422eb07bf4bf63577008","versionType":"git"},{"version":"a3c1afd5d7ad59e34a275d80c428952f83c8c1f0","status":"affected","versionType":"git"},{"version":"6.8.12","status":"affected","lessThan":"6.9","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/auth_gss/svcauth_gss.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6.9.3","status":"affected","lessThan":"6.9.4","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/auth_gss/svcauth_gss.c"]}],"references":["https://git.kernel.org/stable/c/57ff6c0a175930856213b2aa39f8c845a53e5b1c","https://git.kernel.org/stable/c/6ed45d20d30005bed94c8c527ce51d5ad8121018","https://git.kernel.org/stable/c/4cefcd0af7458bdeff56a9d8dfc6868ce23d128a","https://git.kernel.org/stable/c/b4878ea99f2b40ef1925720b1b4ca7f4af1ba785","https://git.kernel.org/stable/c/af628d43a822b78ad8d4a58d8259f8bf8bc71115","https://git.kernel.org/stable/c/0a1cb0c6102bb4fd310243588d39461da49497ad","https://git.kernel.org/stable/c/4a77c3dead97339478c7422eb07bf4bf63577008","https://git.kernel.org/stable/c/f9977e4e0cd98a5f06f2492b4f3547db58deabf5","https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","https://cert-portal.siemens.com/productcert/html/ssa-265688.html","https://cert-portal.siemens.com/productcert/html/ssa-613116.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/36xxx/CVE-2024-36288.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-36288","state":"PUBLISHED","datePublished":"2024-06-21T11:18:46.152Z","dateUpdated":"2026-10-15T00:42:20.440Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-06-21T11:16:40.621Z"},"containers":{"cna":{"title":"SUNRPC: Fix loop termination condition in gss_free_in_token_pages()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nSUNRPC: Fix loop termination condition in gss_free_in_token_pages()\n\nThe in_token->pages[] array is not NULL terminated. This results in\nthe following KASAN splat:\n\n  KASAN: maybe wild-memory-access in range [0x04a2013400000008-0x04a201340000000f]"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ab8466d4e26806a4ae82c282762c4545eecf45ef","status":"affected","lessThan":"57ff6c0a175930856213b2aa39f8c845a53e5b1c","versionType":"git"},{"version":"4420b73c7f26fd5fcb37bbce5313dd356ef1b3ca","status":"affected","lessThan":"6ed45d20d30005bed94c8c527ce51d5ad8121018","versionType":"git"},{"version":"f148a95f68c66c1b097391b68e153d5a46f0e780","status":"affected","lessThan":"4cefcd0af7458bdeff56a9d8dfc6868ce23d128a","versionType":"git"},{"version":"fe0b474974fee7af1df286e0edd5a1460c811865","status":"affected","lessThan":"b4878ea99f2b40ef1925720b1b4ca7f4af1ba785","versionType":"git"},{"version":"c1d8c429e4d2ce85ec5c92cf71cb419baf75c56f","status":"affected","lessThan":"af628d43a822b78ad8d4a58d8259f8bf8bc71115","versionType":"git"},{"version":"8ca148915670a2921afcc255af9e1dc80f37b052","status":"affected","lessThan":"0a1cb0c6102bb4fd310243588d39461da49497ad","versionType":"git"},{"version":"bafa6b4d95d97877baa61883ff90f7e374427fae","status":"affected","lessThan":"4a77c3dead97339478c7422eb07bf4bf63577008","versionType":"git"},{"version":"a3c1afd5d7ad59e34a275d80c428952f83c8c1f0","status":"affected","versionType":"git"},{"version":"6.8.12","status":"affected","lessThan":"6.9","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/auth_gss/svcauth_gss.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6.9.3","status":"affected","lessThan":"6.9.4","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/auth_gss/svcauth_gss.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/57ff6c0a175930856213b2aa39f8c845a53e5b1c"},{"url":"https://git.kernel.org/stable/c/6ed45d20d30005bed94c8c527ce51d5ad8121018"},{"url":"https://git.kernel.org/stable/c/4cefcd0af7458bdeff56a9d8dfc6868ce23d128a"},{"url":"https://git.kernel.org/stable/c/b4878ea99f2b40ef1925720b1b4ca7f4af1ba785"},{"url":"https://git.kernel.org/stable/c/af628d43a822b78ad8d4a58d8259f8bf8bc71115"},{"url":"https://git.kernel.org/stable/c/0a1cb0c6102bb4fd310243588d39461da49497ad"},{"url":"https://git.kernel.org/stable/c/4a77c3dead97339478c7422eb07bf4bf63577008"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - The vulnerable code is the nfsd server-side RPCSEC_GSS context-init handler, reached by a remote client sending an RPC_AUTH_GSS INIT request to the NFS service over TCP (port 2049).\nAC:L - The array is never NULL-terminated, so the out-of-bounds read is triggered deterministically on every gss-proxy init request; the attacker can additionally vary token size and send concurrent requests to influence heap state.\nPR:N - The RPC_GSS_PROC_INIT path is the authentication handshake itself and executes before any credential is verified, so an unauthenticated remote client can reach it.\nUI:N - Triggering only requires sending a crafted RPCSEC_GSS init request to the server; no victim action is involved.\nS:U - The out-of-bounds access and its consequences remain within the kernel's own memory/security authority.\nC:H - The loop performs an unbounded out-of-bounds heap read and then dereferences the garbage pointers via put_page(), reading attacker-uncontrolled but arbitrary kernel memory; per guidance an unbounded OOB read is High.\nI:H - put_page() on the out-of-bounds garbage pointers decrements a refcount at an arbitrary address, a memory-corrupting write that can prematurely free a struct page and be leveraged into a use-after-free.\nA:H - Calling put_page() on wild pointers reliably causes oops/KASAN wild-memory-access and kernel crashes, and is remotely repeatable."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:31:44.710Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9.3","versionEndExcluding":"6.9.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8.12"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-21T13:05:00.955390Z","id":"CVE-2024-36288","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-21T13:05:08.602Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/57ff6c0a175930856213b2aa39f8c845a53e5b1c","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/6ed45d20d30005bed94c8c527ce51d5ad8121018","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4cefcd0af7458bdeff56a9d8dfc6868ce23d128a","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/b4878ea99f2b40ef1925720b1b4ca7f4af1ba785","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/f9977e4e0cd98a5f06f2492b4f3547db58deabf5","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/af628d43a822b78ad8d4a58d8259f8bf8bc71115","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/0a1cb0c6102bb4fd310243588d39461da49497ad","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4a77c3dead97339478c7422eb07bf4bf63577008","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-04T17:21:10.146Z"}},{"affected":[{"vendor":"Siemens","product":"RUGGEDCOM RST2428P","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V3.1","versionType":"custom"}]},{"vendor":"Siemens","product":"SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family","defaultStatus":"unknown","versions":[{"version":"0","status":"unaffected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SCALANCE XCM-/XRM-/XCH-/XRH-300 family","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V3.1","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V1.1.1","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-613116.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-15T00:42:20.440Z"},"x_adpType":"supplier"}]}}}