The meaning of up the corridor and down the corridor depends on the context.
Up and down are “paired prepositions” that can be used to express repetitive motion. Other examples include in and out, back and forth, and so on.
In many cases, the absolute direction for each of the prepositions can be easily inferred from the context, e.g. the Red Duke was regularly in and out of favor at the White Queen’s court. In other cases, the directions are “off”, e.g. George was based in New York but regularly traveled back and forth to Philadelphia. Logically, George travels forth before he travels back, but forth and back is not as euphonious as the more common back and forth.
In the case of up the corridor and down the corridor, the absolute direction has to be inferred from a broader context. Unlike a ladder or a stairway, where up and down have clear physical meanings, a corridor is typically flat.
Fortunately, words are always connected in some way to human states of mind. This can involve the writer and the reader directly (as described in some of the comments), but up and down can also be used to convey characters’ states of mind, or their relative status.
For example: The skirmishers having fallen, the knights moved up the corridor towards each other. In this case, the knights are moving up to a heightened state of conflict, even though their physical directions are opposite. The use of up for both fighters gives the encounter a kind of symmetry.
In contrast, the use of up for one and down for the other can be used to convey asymmetry: in purpose, capability, etc.
Merriam-Webster gives an example of up and down as paired propositions forming a word in its own right:
https://www.merriam-webster.com/dictionary/up-and-down
This kind of construction is possible where the words are opposite in meaning, but where both actions can occur in sequence, like in and out. That said, up and down are very basic to human perception, so they may well be a special case.