{"id":"AZL-118409","summary":"CVE-2026-143246 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpiolib: fix GPIO descriptor leak in gpiod_get_array()\n\nIn gpiod_get_array(), descs-\u003endescs is used as the loop induction\nvariable and is only incremented at the end of each iteration. When\nkrealloc() fails on the first iteration (when index is 0),\ndescs-\u003edesc[0] has already been acquired via gpiod_get_index(), but\ndescs-\u003endescs is still 0. Consequently, gpiod_put_array() frees descs\nwithout releasing descs-\u003edesc[0], leaking the descriptor.\n\nFix this by using a dedicated loop induction variable and incrementing\ndescs-\u003endescs immediately upon storing the retrieved descriptor.\nAdditionally, since the fast-path array_info setup only executes for the\nfirst element (index 0), simplify the bitmap_set() calls to start at bit\n0 for count bits instead of calculating offsets from the loop index.","modified":"2026-12-04T14:18:54.423606531Z","published":"2026-12-03T10:18:04Z","upstream":["CVE-2026-143246"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143246"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-118409.json"}}],"schema_version":"1.9.2"}