udf: Fix NULL pointer dereference in udf_symlink function
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 21bf1414580c36ffc8d8de043beb3508cf812238| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
udf: Fix NULL pointer dereference in udf_symlink function
In function udf_symlink, epos.bh is assigned with the value returned by udf_tgetblk. The function udf_tgetblk is defined in udf/misc.c and returns the value of sb_getblk function that could be NULL. Then, epos.bh is used without any check, causing a possible NULL pointer dereference when sb_getblk fails.
This fix adds a check to validate the value of epos.bh.
From the CVE record · Linux
The Linux kernel's udf_symlink function can dereference a NULL pointer if sb_getblk fails. This could cause a kernel fault; the input does not specify how an attacker could trigger it or whether access or user interaction is required.
Teams running Linux kernels with the affected udf_symlink code should check their versions; affected versions are not specified.