char: applicom: fix NULL pointer dereference in ac_ioctl
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < f83e3e9f89181b42f6076a115d767a7552c4a39e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
char: applicom: fix NULL pointer dereference in ac_ioctl
Discovered by Atuin - Automated Vulnerability Discovery Engine.
In ac_ioctl, the validation of IndexCard and the check for a valid RamIO pointer are skipped when cmd is 6. However, the function unconditionally executes readb(apbs[IndexCard].RamIO + VERS) at the end.
If cmd is 6, IndexCard may reference a board that does not exist (where RamIO is NULL), leading to a NULL pointer dereference.
Fix this by skipping the readb access when cmd is 6, as this command is a global information query and does not target a specific board context.
From the CVE record · Linux
The applicom driver's ac_ioctl function can dereference a NULL pointer when ioctl command 6 uses an index for a board that does not exist. A caller able to issue that command can trigger the dereference; the input does not specify authentication requirements or user interaction.
Operators running the Linux kernel with the applicom driver should check their systems; affected versions are not specified.