{"id":"CVE-2022-48661","state":"PUBLISHED","title":"gpio: mockup: Fix potential resource leakage when register a chip","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: mockup: Fix potential resource leakage when register a chip\n\nIf creation of software node fails, the locally allocated string\narray is left unfreed. Free it on error path.","publishedAt":"2024-04-28T13:01:26.940Z","updatedAt":"2026-05-11T18:44:41.772Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6fda593f3082ef1aa783ac13e89f673fd69a2cb6","status":"affected","lessThan":"9b26723e058faaf11b532fb4aa16d6849d581790","versionType":"git"},{"version":"6fda593f3082ef1aa783ac13e89f673fd69a2cb6","status":"affected","lessThan":"41f857033c44442a27f591fda8d986e7c9e42872","versionType":"git"},{"version":"6fda593f3082ef1aa783ac13e89f673fd69a2cb6","status":"affected","lessThan":"02743c4091ccfb246f5cdbbe3f44b152d5d12933","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-mockup.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.71","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.12","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-mockup.c"]}],"references":["https://git.kernel.org/stable/c/9b26723e058faaf11b532fb4aa16d6849d581790","https://git.kernel.org/stable/c/41f857033c44442a27f591fda8d986e7c9e42872","https://git.kernel.org/stable/c/02743c4091ccfb246f5cdbbe3f44b152d5d12933"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/48xxx/CVE-2022-48661.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-48661","state":"PUBLISHED","datePublished":"2024-04-28T13:01:26.940Z","dateUpdated":"2026-05-11T18:44:41.772Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-25T13:44:28.319Z"},"containers":{"cna":{"title":"gpio: mockup: Fix potential resource leakage when register a chip","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: mockup: Fix potential resource leakage when register a chip\n\nIf creation of software node fails, the locally allocated string\narray is left unfreed. Free it on error path."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6fda593f3082ef1aa783ac13e89f673fd69a2cb6","status":"affected","lessThan":"9b26723e058faaf11b532fb4aa16d6849d581790","versionType":"git"},{"version":"6fda593f3082ef1aa783ac13e89f673fd69a2cb6","status":"affected","lessThan":"41f857033c44442a27f591fda8d986e7c9e42872","versionType":"git"},{"version":"6fda593f3082ef1aa783ac13e89f673fd69a2cb6","status":"affected","lessThan":"02743c4091ccfb246f5cdbbe3f44b152d5d12933","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-mockup.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.71","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.12","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-mockup.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9b26723e058faaf11b532fb4aa16d6849d581790"},{"url":"https://git.kernel.org/stable/c/41f857033c44442a27f591fda8d986e7c9e42872"},{"url":"https://git.kernel.org/stable/c/02743c4091ccfb246f5cdbbe3f44b152d5d12933"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T18:44:41.772Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.71"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.19.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/9b26723e058faaf11b532fb4aa16d6849d581790","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/41f857033c44442a27f591fda8d986e7c9e42872","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/02743c4091ccfb246f5cdbbe3f44b152d5d12933","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T15:17:55.725Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-48661","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T15:46:01.735910Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:33:55.266Z"}}]}}}