Linux · Linux Kernel · CVE-2024-47723
**Name of the Vulnerable Software and Affected Versions**
Linux kernel versions prior to 6.6.58
**Description**
The issue is related to the JFS module in the Linux kernel, where there is no check for the case where `bmp->db numag` is greater or same than `MAXAG` due to a polluted image, causing an out-of-bounds condition in `dbNextAG()`. Additionally, there is no check for the case where `agpref` is greater than `bmp->db numag` in `dbNextAG()`, and no check for the case where `agno` is greater or same than `MAXAG` in `diAlloc()`, both of which can lead to out-of-bounds exceptions.
**Recommendations**
For Linux kernel versions prior to 6.6.58, update to version 6.6.58 or later to resolve the issue. As a temporary workaround, consider adding bounds checks in `dbMount()` and `dbNextAG()` to prevent out-of-bounds exceptions until a patch is available. Restrict access to the JFS module to minimize the risk of exploitation. Avoid using the `dbNextAG()` and `diAlloc()` functions in the affected kernel versions until the issue is resolved.