CVE-2021-47218
CVE.org · Publicado
- Status do registro
- Publicado
- Ano do identificador (não é o ano de publicação)
- 2021
- Publicação na fonte
- Atualização na fonte
- Importado pelo cveboard
- Snapshot da fonte
- cve_2026-10-24_midnight_baseline ·
Texto da CNA em inglês
selinux: fix NULL-pointer dereference when hashtab allocation fails
In the Linux kernel, the following vulnerability has been resolved: selinux: fix NULL-pointer dereference when hashtab allocation fails When the hash table slot array allocation fails in hashtab_init(), h->size is left initialized with a non-zero value, but the h->htable pointer is NULL. This may then cause a NULL pointer dereference, since the policydb code relies on the assumption that even after a failed hashtab_init(), hashtab_map() and hashtab_destroy() can be safely called on it. Yet, these detect an empty hashtab only by looking at the size. Fix this by making sure that hashtab_init() always leaves behind a valid empty hashtab when the allocation fails.
Fatos de produtos e versões por escopo
Dados de correção desconhecidos; nenhuma versão corrigida é deduzida aqui. Dados ausentes não comprovam ausência de correção.
Exploração desconhecida; este catálogo não avalia exploração.
Linux
- Fornecedor
- Linux
- Produto
- Linux
- Plataformas
- Desconhecido
- Status padrão
unaffected
| Versão (version) | Status (status) | Esquema de versões (versionType) | Fim exclusivo (lessThan) | Fim inclusivo (lessThanOrEqual) | Mudanças de status (at → status) |
|---|---|---|---|---|---|
| 03414a49ad5f3c56988c36d2070e402ffa17feaf | affected | git | b17dd53cac769dd13031b0ca34f90cc65e523fab | Indisponível | Nenhuma listada |
| 03414a49ad5f3c56988c36d2070e402ffa17feaf | affected | git | 83c8ab8503adf56bf68dafc7a382f4946c87da79 | Indisponível | Nenhuma listada |
| 03414a49ad5f3c56988c36d2070e402ffa17feaf | affected | git | dc27f3c5d10c58069672215787a96b4fae01818b | Indisponível | Nenhuma listada |
Linux
- Fornecedor
- Linux
- Produto
- Linux
- Plataformas
- Desconhecido
- Status padrão
affected
| Versão (version) | Status (status) | Esquema de versões (versionType) | Fim exclusivo (lessThan) | Fim inclusivo (lessThanOrEqual) | Mudanças de status (at → status) |
|---|---|---|---|---|---|
| 5.8 | affected | Indisponível | Indisponível | Indisponível | Nenhuma listada |
| 0 | unaffected | semver | 5.8 | Indisponível | Nenhuma listada |
| 5.10.82 | unaffected | semver | Indisponível | 5.10.* | Nenhuma listada |
| 5.15.5 | unaffected | semver | Indisponível | 5.15.* | Nenhuma listada |
| 5.16 | unaffected | original_commit_for_fix | Indisponível | * | Nenhuma listada |