|
1 | | -# CHANGES - OpenPrinting CUPS Filters v2.0rc1 - 2023-04-12 |
| 1 | +# CHANGES - OpenPrinting CUPS Filters v2.0rc2 - 2023-06-20 |
| 2 | + |
| 3 | +## CHANGES IN V2.0rc2 (20th June 2023) |
| 4 | + |
| 5 | +- beh backend: Use `execv()` instead of `system()` - CVE-2023-24805 |
| 6 | + With `execv()` command line arguments are passed as separate strings |
| 7 | + and not the full command line in a single string. This prevents |
| 8 | + arbitrary command execution by escaping the quoting of the arguments |
| 9 | + in a job with forged job title. |
| 10 | + |
| 11 | +- beh backend: Extra checks against odd/forged input - CVE-2023-24805 |
| 12 | + |
| 13 | + * Do not allow `/` in the scheme of the URI (= backend executable |
| 14 | + name), to assure that only backends inside |
| 15 | + `/usr/lib/cups/backend/` are used. |
| 16 | + |
| 17 | + * Pre-define scheme buffer to empty string, to be defined for case |
| 18 | + of URI being NULL. |
| 19 | + |
| 20 | + * URI must have `:`, to split off scheme, otherwise error. |
| 21 | + |
| 22 | + * Check return value of `snprintf()` to create call path for |
| 23 | + backend, to error out on truncation of a too long scheme or on |
| 24 | + complete failure due to a completely odd scheme. |
| 25 | + |
| 26 | +- beh backend: Further improvements - CVE-2023-24805 |
| 27 | + |
| 28 | + * Use `strncat()` instead of `strncpy()` for getting scheme from |
| 29 | + URI, the latter does not require setting terminating zero byte in |
| 30 | + case of truncation. |
| 31 | + |
| 32 | + * Also exclude `.` or `..` as scheme, as directories are not valid |
| 33 | + CUPS backends. |
| 34 | + |
| 35 | + * Do not use `fprintf()` in `sigterm_handler()`, to not interfere |
| 36 | + with a `fprintf()` which could be running in the main process when |
| 37 | + `sigterm_handler()` is triggered. |
| 38 | + |
| 39 | + * Use `static volatile int` for global variable job_canceled. |
| 40 | + |
| 41 | +- `parallel` backend: Added missing `#include` lines |
| 42 | + |
2 | 43 |
|
3 | 44 | ## CHANGES IN V2.0rc1 (12th April 2023) |
4 | 45 |
|
|
0 commit comments