Hou Tao

Pesquisador deHuawei
#2469de 53,638
99.2CVSS total
Vulnerabilidades · 14
Média
4
Alta
9
Crítica
1
PT-2024-5424
7.8
2024-06-21
Linux · Linux Kernel · CVE-2024-40899
**Nome do software vulnerável e versões afetadas** Versões do kernel Linux anteriores à 6.8.0-rc7-dirty #542 **Descrição** O problema é causado por uma vulnerabilidade do tipo “slab-use-after-free” na função `cachefiles ondemand daemon read`. Isso ocorre quando um comando de restauração é emitido enquanto o daemon ainda está ativo, resultando no processamento de uma solicitação várias vezes e acionando um erro de uso após liberação (UAF). A vulnerabilidade pode ser explorada emitindo-se um comando de restauração enquanto o daemon ainda está ativo. Os detalhes técnicos sobre a exploração incluem: - A função `cachefiles ondemand get fd` é vulnerável a um erro UAF. - A variável `REQ A` é usada para armazenar uma solicitação, e seu campo `done` é aguardado usando `wait for completion`. - A função `cachefiles ondemand daemon read` lê dados de um descritor de arquivo, e a função `copy to user` é usada para copiar dados para um buffer do espaço do usuário. - A função `xas for each` é usada para iterar sobre um conjunto de solicitações, e a função `xas set mark` é usada para definir uma marca em uma solicitação. - A função `cachefiles ondemand restore` é usada para restaurar uma solicitação, e a função `xa erase` é usada para apagar uma solicitação do cache. **Recomendações** Para resolver o problema, adicione uma contagem de referência adicional a `cachefiles req`, que é mantida durante a espera e a leitura e, em seguida, liberada quando a espera e a leitura terminam. Como solução alternativa temporária, considere desativar a função `cachefiles ondemand daemon read` até que um patch esteja disponível.
PT-2023-8769
7.8
2023-12-04
Linux · Linux Kernel · CVE-2023-52447
**Name of the Vulnerable Software and Affected Versions** Linux kernel versions from v5.8 to v6.6 **Description** The issue is related to a use-after-free problem in the Linux kernel, specifically in the bpf (Berkeley Packet Filter) subsystem. When updating or deleting an inner map in a map array or map htab, the map may still be accessed by non-sleepable or sleepable programs. The `bpf map fd put ptr()` function decreases the ref-counter of the inner map directly through `bpf map put()`, which can lead to the inner map being freed by `ops->map free()` in a kworker. However, most `.map free()` callbacks do not use `synchronize rcu()` or its variants to wait for the elapse of a RCU (Read-Copy Update) grace period, resulting in a potential use-after-free problem. The estimated number of potentially affected devices worldwide is not specified. There are reports of proof-of-concept (PoC) exploits being released, demonstrating the vulnerability's potential for container escape. **Recommendations** To resolve the issue, update the Linux kernel to a version that includes the fix for the vulnerability. Specifically, versions prior to v5.8 and after v6.6 are not affected. For versions between v5.8 and v6.6, apply the patch that fixes the use-after-free problem in the bpf subsystem. As a temporary workaround, consider disabling the `bpf map put()` function or restricting access to the vulnerable bpf subsystem until a patch is available.